This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
TI Fellows,
In controlSuite, you advocate the use of bit structure over #define macro, seen in all header files, however, in motorware drivers, such coding style was not followed, instead, you define bunch of macros for each configuration bit(s) field, what was the consideration of the deviation from bit-structure coding style?
Regards,
Louis
Louis,
You should probably read the Architecture and Coding documents here
C:\ti\motorware\motorware_1_01_00_11\docs
We choose to move to this object oriented API style of software for many reasons
We know it's a big change if you are well versed in controlSUITE style C2000 code of the past. That's why we have made this change only for our new solutions like InstaSPIN-FOC and InstaSPIN-MOTION supported through MotorWare. We have also started to introduce this style through the LaunchPad ecosystems where we offer the same object oriented of drivers and example projects.
Hi Sal,
Have you seen the following docs (C:\TI\motorware\motorware_1_01_00_15\docs)?
These documents describe the overall architecture and design of MotorWare software. Things like making inline functions static to eliminate the call/return ASM instructions. The code was written with the compiler in mind to generate efficient ASM code.
It is interesting to also reviewing documentation on compiler tips & tricks, do a search on this in the forum and you find things like the compiler wiki:
Updated Compiler Tips & Tricks Presentation - Code Composer Studio forum - Code Composer Studio™︎ - TI...
Jeff