Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: RE: Problem compiling the CMSIS library in CCS

$
0
0

[quote user="BrandonM"]

1.) In the cmsis_css.h file provided by TI, I added these lines:

#define __SXTB16   _sxtb16      
#define __ROR        _ror             

[/quote]Two comments on that:

a) There should be two underscores before the ror instrinsic, not one. (with the TI ARM compiler v5.0.5)

b) As previously noted, the TI ARM compiler _sxtb16 intrinsic takes a 2nd parameter which is the amount to rotate. By changing the definition of the __SXTB16 macro to include a rotate of zero avoids the need to change the ARM provided source code.

i.e. in the cmsis.h include file I added the following defines, which then allowed the CMSIS 3.01 library to compile without any implicit function definition warnings and without having to change any of the ARM provided source code:

[quote]#define __ROR __ror

 #define __SXTB16(src) _sxtb16((src),0)[/quote]


Viewing all articles
Browse latest Browse all 91752

Trending Articles