archive MK1 AVR source

This commit is contained in:
ikari
2010-09-06 23:51:48 +02:00
parent a6d66e7a8b
commit a9b84c3e0b
54 changed files with 1220 additions and 793 deletions

31
mk1-src/integer.h Normal file
View File

@@ -0,0 +1,31 @@
/* Integer definitions for ff, based on example code from ChaN */
#ifndef _INTEGER
#include <stdint.h>
/* These types are assumed as 16-bit or larger integer */
typedef int16_t INT;
typedef uint16_t UINT;
/* These types are assumed as 8-bit integer */
typedef int8_t CHAR;
typedef uint8_t UCHAR;
typedef uint8_t BYTE;
/* These types are assumed as 16-bit integer */
typedef int16_t SHORT;
typedef uint16_t USHORT;
typedef uint16_t WORD;
typedef uint16_t WCHAR;
/* These types are assumed as 32-bit integer */
typedef int32_t LONG;
typedef uint32_t ULONG;
typedef uint32_t DWORD;
/* Boolean type */
typedef enum { FALSE = 0, TRUE } BOOL;
#define _INTEGER
#endif