| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- /**
- * @file wm_type_def.h
- *
- * @brief WM type redefine
- *
- * @author winnermicro
- *
- * Copyright (c) 2015 Winner Microelectronics Co., Ltd.
- */
- #ifndef __WM_TYPE_DEF_H__
- #define __WM_TYPE_DEF_H__
- #ifdef bool
- #undef bool
- #endif
- #ifdef u8
- #undef u8
- #endif
- #ifdef s8
- #undef s8
- #endif
- #ifdef u16
- #undef u16
- #endif
- #ifdef s16
- #undef s16
- #endif
- #ifdef u32
- #undef u32
- #endif
- #ifdef s32
- #undef s32
- #endif
- #ifdef u64
- #undef u64
- #endif
- #ifdef s64
- #undef s64
- #endif
- #ifdef u_char
- #undef u_char
- #endif
- typedef unsigned char u_char;
- #ifdef INT8U
- #undef INT8U
- #endif
- typedef unsigned char INT8U;
- #ifdef INT8S
- #undef INT8S
- #endif
- typedef signed char INT8S;
- typedef unsigned char bool;
- typedef unsigned char u8;
- typedef signed char s8;
- typedef unsigned short u16;
- typedef signed short s16;
- typedef unsigned int u32;
- typedef signed int s32;
- typedef unsigned long long u64;
- typedef long long s64;
- #if defined(_NEWLIB_VERSION_H__)
- #ifdef int32_t
- #undef int32_t
- typedef int int32_t;
- #endif
- #ifdef uint32_t
- #undef uint32_t
- typedef unsigned int uint32_t;
- #endif
- #endif
- #if defined(__MINILIBC__)
- typedef int int32_t;
- typedef unsigned int uint32_t;
- #endif
- #ifdef int32
- #undef int32
- #endif
- typedef int int32;
- #ifdef uint32
- #undef uint32
- #endif
- typedef unsigned int uint32;
- #ifdef int16
- #undef int16
- #endif
- typedef short int16;
- #ifdef uint16
- #undef uint16
- #endif
- typedef unsigned short uint16;
- #ifdef ULONG
- #undef ULONG
- #endif
- typedef unsigned long ULONG;
- #ifdef u8_t
- #undef u8_t
- #endif
- typedef unsigned char u8_t;
- #ifdef uint8_t
- #undef uint8_t
- #endif
- typedef unsigned char uint8_t;
- #ifdef u16_t
- #undef u16_t
- #endif
- typedef unsigned short u16_t;
- #ifdef uint16_t
- #undef uint16_t
- #endif
- typedef unsigned short uint16_t;
- #ifdef u32_t
- #undef u32_t
- #endif
- typedef unsigned int u32_t;
- #ifdef s8_t
- #undef s8_t
- #endif
- typedef signed char s8_t;
- #ifdef s16_t
- #undef s16_t
- #endif
- typedef signed short s16_t;
- #ifdef s32_t
- #undef s32_t
- #endif
- typedef signed int s32_t;
- #if (GCC_COMPILE==0)
- #ifdef size_t
- #undef size_t
- #endif
- typedef unsigned int size_t;
- #endif
- #ifdef err_t
- #undef err_t
- #endif
- typedef signed char err_t;
- #ifdef mem_ptr_t
- #undef mem_ptr_t
- #endif
- typedef unsigned int mem_ptr_t;
- #ifdef TRUE
- #undef TRUE
- #endif
- #define TRUE 1
- #ifdef FALSE
- #undef FALSE
- #endif
- #define FALSE 0
- #define true 1
- #define false 0
- #define WM_SUCCESS 0
- #define WM_FAILED -1
- #ifndef IGNORE_PARAMETER
- #define IGNORE_PARAMETER(x) ((x) = (x))
- #endif
- #endif
|