CW10 Kinetis inline assembly

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

CW10 Kinetis inline assembly

1,044 次查看
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.

标签 (1)
0 项奖励
回复
1 回复

565 次查看
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).