aboutsummaryrefslogtreecommitdiff
path: root/include/libopenstm32
diff options
context:
space:
mode:
authorUwe Hermann2009-07-23 02:21:30 +0200
committerUwe Hermann2009-07-24 14:43:43 +0200
commit56ffeed8af9d43b567fdb4faca04ad169e04279d (patch)
tree28dd2bfa682d104000d2d7db2e18eada20b8e793 /include/libopenstm32
parent86db7153321978e8ce2dc698ef3b88cd4f67cb41 (diff)
Make u8/u16/etc. simple aliases.
Diffstat (limited to 'include/libopenstm32')
-rw-r--r--include/libopenstm32/common.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/libopenstm32/common.h b/include/libopenstm32/common.h
index aa57cf1..fe67eb1 100644
--- a/include/libopenstm32/common.h
+++ b/include/libopenstm32/common.h
@@ -22,13 +22,13 @@
#include <libopenstm32.h>
-/* Type definitions */
-typedef signed char s8;
-typedef signed short s16;
-typedef signed long s32;
-typedef unsigned char u8;
-typedef unsigned short u16;
-typedef unsigned long u32;
+/* Type definitions for shorter and nicer code */
+typedef int8_t s8;
+typedef int16_t s16;
+typedef int32_t s32;
+typedef uint8_t u8;
+typedef uint16_t u16;
+typedef uint32_t u32;
/* Generic memory-mapped I/O accessor functions */
#define MMIO8(addr) (*(volatile u8 *)(addr))