[an error occurred while processing this directive]
|
#ifdef __ENDIAN_1#define ST_U32(p,w) (*((u32_t *)(p)) = w)
#else
#define ST_U32(p,w) \
*((p) + 0) = ((w) >> 24);\
*((p) + 1) = ((w) >> 16);\
*((p) + 2) = ((w) >> 8);\
*((p) + 3) = (w)
#endif// сохраняем long переменную в памяти как "она есть"
u8_t *p;
ST_U32(p,0x12345678);
E-mail: info@telesys.ru