Root/usbboot/xburst_include/target/xburst_types.h

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
13typedef unsigned int size_t;
14typedef unsigned char u8;
15typedef unsigned short u16;
16typedef 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__ */
23

Archive Download this file



interactive