CW10 Kinetis inline assembly

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CW10 Kinetis inline assembly

867 Views
NoeSerres
Contributor II

Hi,

 

Trying to port a project from IAR to Codewarrior v10 for Kinetis, I have a comilation error when calling inline assembly.

Example: trying to compile     foo = __REV(bar);    /* OK with IAR compiler   */

The error is                                Undefined : "__REV"  /* Error with CW compiler */

 

What is the correct syntax for calling assembly instructions or functions?

Should I include a header like "intrinsics.h" and where to find it for Kinetis K60?

Is there a document where I could find the list of all existing inline instructions?

 

Any advice would be appreciated.

Labels (1)
0 Kudos
1 Reply

388 Views
admin
Specialist II

If the __REV function is being used for endian translations, the htonl() and htons() could be functionally equivalent (assuming a little-endian host).