读取一个内存地址的值
#define get_dword(add) (*(volatile UINT32 *)(addr))
#define set_dword(add, val) (*(volatile UINT32 *)(addr)) = (val)
#define get_word(add) (*(volatile UINT16 *)(add))
#define set_word(add,d) (*(volatile UINT16 *)(add)) = ( val)
#define get_byte(add) (*(volatile UINT8 *)(add))
#define set_byte(add, val) (*(volatile UINT8 *)(add)) = ( val)

浙公网安备 33010602011771号