[<<][ecos][>>][..]
Thu Feb 17 18:46:53 EST 2011

HAL_WRITE_UINT32 and volatile

In eCos, volatile pointers are abstracted by the following macros:

#define HAL_READ_UINT32( _register_, _value_ ) \
        ((_value_) = *((volatile CYG_WORD32 *)(_register_)))

#define HAL_WRITE_UINT32( _register_, _value_ ) \
        (*((volatile CYG_WORD32 *)(_register_)) = (_value_))





[Reply][About]
[<<][ecos][>>][..]