Jump to content


  • Content Count

  • Joined

  • Last visited

  1. You can use the __byte((int*)bufer, N) compiler "intrinsic" to access the Nth byte of a given buffer. That could make retrieval easier. However I don't think it would save any space when creating the array of chars because the litteral in __byte((int*)buffer, N) = 'a'; is probably still going to be stored in a 16 bit char. You could still build the array by doing hex and then grabbing the Nth char with the __byte((int*)buffer, N) intrinsic. As far as building the hex litterals for the array some excel or python magic could help.
  2. So now that I have dug a little more into the Piccolo it looks like there is the beginnings of a StellarisWare style driver library. I am surprise this has not been ported by TI to the other C2000 chips as the peripherals probably operate the same way just with registers in different chunks of memory.
  3. I also plan on providing C wrappers for those that dont use C++.
  4. There are plenty of docs. However the examples are minimal. The good thing is that, I believe, TI uses the same IP for the peripherals on the C2000 chips. So you write a driver for one it pretty much ports. I am aiming for device independent drivers. For a proof of concept I wanted to start with the easiest peripheral I could think of..... serial... Here is what I have so far. I am going to do considerable beautifying and generalizing. #include "DSP28x_Project.h" class ScopedEAllow { public: ScopedEAllow() { EALLOW; } ~ScopedEAllow(){ EDIS; } }; void boilerPlate() {
  5. Cool. I will contact you when I get my first chunk of content.
  6. Unlike the many of TI's other chips the C2000 series does not come with a peripheral driver library of any sort. What is provided by TI is the "C/C++ Header files and Peripheral examples" which is a relatively weak set examples covering a pretty small set of the use cases of the chips peripherals. Having personally developed driver abstractions for the I2C, SPI, CAN, and XINTF on the TMS320F28335 I have been frustrated with the sheer amount of tedium and attention to detail required to work with the peripherals on the C2000 devices. Since there seems to be no driver library coming from TI
  • Create New...