1.1 --- a/include/xburst_types.h Wed Jun 28 00:20:14 2017 +0200
1.2 +++ b/include/xburst_types.h Wed Jun 28 01:04:22 2017 +0200
1.3 @@ -3,6 +3,7 @@
1.4 *
1.5 * Copyright 2009 (C) Qi Hardware Inc.
1.6 * Author: Xiangfu Liu <xiangfu@sharism.cc>
1.7 + * Copyright (C) 2017 Paul Boddie <paul@boddie.org.uk>
1.8 *
1.9 * This program is free software: you can redistribute it and/or modify
1.10 * it under the terms of the GNU General Public License as published by
1.11 @@ -21,13 +22,10 @@
1.12 #ifndef __XBURST_TYPES_H__
1.13 #define __XBURST_TYPES_H__
1.14
1.15 -typedef unsigned int size_t;
1.16 -typedef unsigned char u8;
1.17 -typedef unsigned short u16;
1.18 -typedef unsigned int u32;
1.19 +#include <stdint.h>
1.20
1.21 -#define REG8(addr) *((volatile u8 *)(addr))
1.22 -#define REG16(addr) *((volatile u16 *)(addr))
1.23 -#define REG32(addr) *((volatile u32 *)(addr))
1.24 +#define REG8(addr) *((volatile uint8_t *)(addr))
1.25 +#define REG16(addr) *((volatile uint16_t *)(addr))
1.26 +#define REG32(addr) *((volatile uint32_t *)(addr))
1.27
1.28 #endif /* __XBURST_TYPES_H__ */