How to access macro variable to an asm function in mpc5746

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

How to access macro variable to an asm function in mpc5746

1,111件の閲覧回数
renjithr
Contributor I

How to access the following macro to my inline-asm function, and to store 32 bit value to that location

#define STATUS_VAR (*(volatile uint32_t*)0x40008025u)

asm void testFunc(void)          
{

-------

-------
}

ラベル(1)
0 件の賞賛
返信
1 返信

1,013件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

you can't do that. It is not possible to put C expression to asm code. You can do that only if it is pure number like:

#define STATUS_VAR 0x40008025U

Regards,

Lukas

0 件の賞賛
返信