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