1 /* 2 * Authors: Xiangfu Liu <xiangfu@sharism.cc> 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 3 of the License, or (at your option) any later version. 8 */ 9 10 #ifndef __XBURST_TYPES_H__ 11 #define __XBURST_TYPES_H__ 12 13 typedef unsigned int size_t; 14 typedef unsigned char u8; 15 typedef unsigned short u16; 16 typedef unsigned int u32; 17 18 #define REG8(addr) *((volatile u8 *)(addr)) 19 #define REG16(addr) *((volatile u16 *)(addr)) 20 #define REG32(addr) *((volatile u32 *)(addr)) 21 22 #endif /* __XBURST_TYPES_H__ */