How to access macro variable to an asm function in mpc5746

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

How to access macro variable to an asm function in mpc5746

567 Views
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)          
{

-------

-------
}

Labels (1)
0 Kudos
Reply
1 Reply

469 Views
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 Kudos
Reply