2011-12-11 03:45:04 +04:00
|
|
|
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
|
|
|
*/
|
2011-02-22 08:51:06 +03:00
|
|
|
#ifndef TYPES_H
|
|
|
|
#define TYPES_H
|
|
|
|
|
|
|
|
/* Types */
|
|
|
|
|
|
|
|
#define NULL ((void *)0UL)
|
|
|
|
|
|
|
|
#ifndef BOOTLOADER
|
|
|
|
typedef unsigned long uintptr_t;
|
|
|
|
#else
|
|
|
|
typedef unsigned short uintptr_t;
|
|
|
|
#endif
|
|
|
|
typedef unsigned long size_t;
|
2011-03-25 02:24:24 +03:00
|
|
|
typedef signed int int32_t;
|
2011-02-22 08:51:06 +03:00
|
|
|
typedef unsigned int uint32_t;
|
|
|
|
typedef unsigned short uint16_t;
|
2011-10-31 07:58:42 +04:00
|
|
|
typedef signed short int16_t;
|
2011-02-22 08:51:06 +03:00
|
|
|
typedef unsigned char uint8_t;
|
2011-10-29 09:33:45 +04:00
|
|
|
typedef signed char int8_t;
|
2011-02-22 08:51:06 +03:00
|
|
|
typedef unsigned long long uint64_t;
|
|
|
|
|
|
|
|
|
|
|
|
#define CHAR_BIT 8
|
|
|
|
#define INT32_MAX 0x7fffffffL
|
|
|
|
#define UINT32_MAX 0xffffffffL
|
|
|
|
|
|
|
|
#endif
|