CW10 Kinetis inline assembly

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

CW10 Kinetis inline assembly

1,450件の閲覧回数
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 返信

971件の閲覧回数
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).