Make u8/u16/etc. simple aliases.

This commit is contained in:
Uwe Hermann 2009-07-23 02:21:30 +02:00
parent 86db715332
commit 56ffeed8af

View File

@ -22,13 +22,13 @@
#include <libopenstm32.h> #include <libopenstm32.h>
/* Type definitions */ /* Type definitions for shorter and nicer code */
typedef signed char s8; typedef int8_t s8;
typedef signed short s16; typedef int16_t s16;
typedef signed long s32; typedef int32_t s32;
typedef unsigned char u8; typedef uint8_t u8;
typedef unsigned short u16; typedef uint16_t u16;
typedef unsigned long u32; typedef uint32_t u32;
/* Generic memory-mapped I/O accessor functions */ /* Generic memory-mapped I/O accessor functions */
#define MMIO8(addr) (*(volatile u8 *)(addr)) #define MMIO8(addr) (*(volatile u8 *)(addr))