Merge stdint.h contents into common.h so we don't conflict with libc.

This commit is contained in:
Uwe Hermann
2009-07-18 01:39:30 +02:00
parent cf7d4df189
commit 015b046c1e
3 changed files with 8 additions and 33 deletions

View File

@@ -23,6 +23,14 @@
#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;
/* Generic memory-mapped I/O accessor functions */
#define MMIO8(addr) (*(volatile u8 *)(addr))
#define MMIO16(addr) (*(volatile u16 *)(addr))