Anthony L schrieb:
> Could someone please tell me what the purpose of the sfrw macro is?
> 
> #define TA0CTL_             0x0160
> sfrw (TA0CTL,TA0CTL_);
> 
> What would be the difference to defining TA0CTL directly to 0x0160 ?

It's the notation originally used by TI.

it's a bit more abstract and therfore better if the same headers are
used for different compilers (some have special extensions to access
fixed address variables) and that specialities can then be hidden by the
sfr macros.

chris

Reply via email to