#include "compiler.h"
Go to the source code of this file.
Data Structures | |
| union | Union16 |
| union | Union32 |
Defines | |
| #define | _MEM_TYPE_BIT_ |
| #define | _MEM_TYPE_FAST_ |
| #define | _MEM_TYPE_MEDFAST_ |
| #define | _MEM_TYPE_MEDSLOW_ |
| #define | _MEM_TYPE_SLOW_ |
| #define | Align_down(val, n) ( (val) & ~((n)-1) ) |
| #define | Align_up(val, n) ( ((val)+(n)-1) & ~((n)-1) ) |
| #define | CLR 0 |
| #define | CLR_BIT_X(addrx, mask) (*addrx = (*addrx & ~mask)) |
| #define | DISABLE 0 |
| #define | DISABLED 0 |
| #define | ENABLE 1 |
| #define | ENABLED 1 |
| #define | FAIL 1 |
| #define | FALSE (0==1) |
| #define | HIGH(U16) ((Uchar)(U16>>8)) |
| #define | htonl(a) Le32(a) |
| #define | htons(a) Le16(a) |
| #define | IN_X(addrx) (*addrx) |
| #define | INTEL_ALIGNMENT LITTLE_ENDIAN |
| #define | KO 0 |
| #define | Le16(b) |
| #define | Le32(b) |
| #define | LITTLE_ENDIAN |
| #define | Long_call(addr) ((*(void (_ConstType_*)(void))(addr))()) |
| #define | LOW(U16) ((Uchar)U16) |
| #define | LSB(u16) (((U8* )&u16)[0]) |
| #define | LSB0(u32) MSB3(u32) |
| #define | LSB1(u32) MSB2(u32) |
| #define | LSB2(u32) MSB1(u32) |
| #define | LSB3(u32) MSB0(u32) |
| #define | LSW(u32) (((U16*)&u32)[0]) |
| #define | Max(a, b) ( (a)>(b) ? (a) : (b) ) |
| #define | Min(a, b) ( (a)<(b) ? (a) : (b) ) |
| #define | MOTOROLA_ALIGNMENT BIG_ENDIAN |
| #define | MSB(u16) (((U8* )&u16)[1]) |
| #define | MSB0(u32) (((U8* )&u32)[3]) |
| #define | MSB1(u32) (((U8* )&u32)[2]) |
| #define | MSB2(u32) (((U8* )&u32)[1]) |
| #define | MSB3(u32) (((U8* )&u32)[0]) |
| #define | MSW(u32) (((U16*)&u32)[1]) |
| #define | ntohl(a) htonl(a) |
| #define | ntohs(a) htons(a) |
| #define | NULL 0 |
| #define | OFF 0 |
| #define | OK 1 |
| #define | ON 1 |
| #define | OUT_X(addrx, value) (*addrx = value) |
| #define | PASS 0 |
| #define | SET 1 |
| #define | SET_BIT_X(addrx, mask) (*addrx = (*addrx | mask)) |
| #define | SET_SFR_BIT(sfr_reg, bit_pos, bit_val) { sfr_reg &= ~(1<<(bit_pos)); sfr_reg |= ((bit_val)<<(bit_pos));} |
| #define | TID_GUARD(proc) ((__TID__ & 0x7FF0) != ((90 << 8) | ((proc) << 4))) |
| #define | TRUE (1==1) |
| #define | TST_BIT_X(addrx, mask) (*addrx & mask) |
| #define | Upper(val, n) ( ((val)+(n)) & ~((n)-1) ) |
Typedefs | |
| typedef char | bit |
| typedef unsigned char | Bool |
| typedef unsigned char | Byte |
| typedef unsigned long int | DWord |
| typedef float | Float16 |
| typedef int | Int16 |
| typedef long int | Int32 |
| typedef char | Int8 |
| typedef int | p_uart_ptchar |
| typedef char | r_uart_gtchar |
| typedef int | r_uart_ptchar |
| typedef signed short | S16 |
| typedef long | S32 |
| typedef signed char | S8 |
| typedef U8 | Status |
| typedef Bool | Status_bool |
| typedef unsigned short | U16 |
| typedef unsigned long | U32 |
| typedef unsigned char | U8 |
| typedef unsigned char | Uchar |
| typedef unsigned int | Uint16 |
| typedef unsigned long int | Uint32 |
| typedef unsigned char | Uint8 |
| typedef unsigned int | Word |
Definition in file compiler.h.
| #define _MEM_TYPE_BIT_ |
Definition at line 93 of file compiler.h.
| #define _MEM_TYPE_FAST_ |
Definition at line 94 of file compiler.h.
| #define _MEM_TYPE_MEDFAST_ |
Definition at line 95 of file compiler.h.
| #define _MEM_TYPE_MEDSLOW_ |
Definition at line 96 of file compiler.h.
| #define _MEM_TYPE_SLOW_ |
Definition at line 97 of file compiler.h.
| #define Align_down | ( | val, | |||
| n | ) | ( (val) & ~((n)-1) ) |
Definition at line 300 of file compiler.h.
| #define Align_up | ( | val, | |||
| n | ) | ( ((val)+(n)-1) & ~((n)-1) ) |
Definition at line 291 of file compiler.h.
| #define CLR 0 |
Definition at line 259 of file compiler.h.
| #define CLR_BIT_X | ( | addrx, | |||
| mask | ) | (*addrx = (*addrx & ~mask)) |
Definition at line 268 of file compiler.h.
| #define DISABLE 0 |
Definition at line 247 of file compiler.h.
| #define DISABLED 0 |
Definition at line 246 of file compiler.h.
| #define ENABLE 1 |
Definition at line 244 of file compiler.h.
| #define ENABLED 1 |
Definition at line 245 of file compiler.h.
| #define FAIL 1 |
Definition at line 82 of file compiler.h.
| #define FALSE (0==1) |
Definition at line 248 of file compiler.h.
Referenced by main(), mc_inrush_task(), mci_run(), mci_stop(), mystrncmp(), parse_cmd(), ushell_task(), and ushell_task_init().
| #define htonl | ( | a | ) | Le32(a) |
Definition at line 233 of file compiler.h.
| #define htons | ( | a | ) | Le16(a) |
Definition at line 231 of file compiler.h.
| #define IN_X | ( | addrx | ) | (*addrx) |
Definition at line 270 of file compiler.h.
| #define INTEL_ALIGNMENT LITTLE_ENDIAN |
Definition at line 182 of file compiler.h.
| #define KO 0 |
Definition at line 251 of file compiler.h.
| #define Le16 | ( | b | ) |
Value:
Definition at line 215 of file compiler.h.
| #define Le32 | ( | b | ) |
| #define LITTLE_ENDIAN |
Definition at line 61 of file compiler.h.
| #define Long_call | ( | addr | ) | ((*(void (_ConstType_*)(void))(addr))()) |
Definition at line 317 of file compiler.h.
| #define LSB | ( | u16 | ) | (((U8* )&u16)[0]) |
Definition at line 188 of file compiler.h.
Referenced by mc_comparator_0(), mc_comparator_1(), mc_comparator_2(), and parse_cmd().
| #define LSB0 | ( | u32 | ) | MSB3(u32) |
Definition at line 195 of file compiler.h.
| #define LSB1 | ( | u32 | ) | MSB2(u32) |
Definition at line 196 of file compiler.h.
| #define LSB2 | ( | u32 | ) | MSB1(u32) |
Definition at line 197 of file compiler.h.
| #define LSB3 | ( | u32 | ) | MSB0(u32) |
Definition at line 198 of file compiler.h.
| #define LSW | ( | u32 | ) | (((U16*)&u32)[0]) |
Definition at line 190 of file compiler.h.
| #define Max | ( | a, | |||
| b | ) | ( (a)>(b) ? (a) : (b) ) |
Definition at line 272 of file compiler.h.
| #define Min | ( | a, | |||
| b | ) | ( (a)<(b) ? (a) : (b) ) |
Definition at line 273 of file compiler.h.
| #define MOTOROLA_ALIGNMENT BIG_ENDIAN |
Definition at line 183 of file compiler.h.
| #define MSB | ( | u16 | ) | (((U8* )&u16)[1]) |
Definition at line 187 of file compiler.h.
Referenced by mc_comparator_0(), mc_comparator_1(), mc_comparator_2(), and parse_cmd().
| #define MSB0 | ( | u32 | ) | (((U8* )&u32)[3]) |
Definition at line 191 of file compiler.h.
| #define MSB1 | ( | u32 | ) | (((U8* )&u32)[2]) |
Definition at line 192 of file compiler.h.
| #define MSB2 | ( | u32 | ) | (((U8* )&u32)[1]) |
Definition at line 193 of file compiler.h.
| #define MSB3 | ( | u32 | ) | (((U8* )&u32)[0]) |
Definition at line 194 of file compiler.h.
| #define MSW | ( | u32 | ) | (((U16*)&u32)[1]) |
Definition at line 189 of file compiler.h.
| #define ntohl | ( | a | ) | htonl(a) |
Definition at line 234 of file compiler.h.
| #define ntohs | ( | a | ) | htons(a) |
Definition at line 232 of file compiler.h.
| #define NULL 0 |
Definition at line 256 of file compiler.h.
| #define OFF 0 |
Definition at line 253 of file compiler.h.
| #define OK 1 |
Definition at line 252 of file compiler.h.
| #define ON 1 |
Definition at line 254 of file compiler.h.
| #define OUT_X | ( | addrx, | |||
| value | ) | (*addrx = value) |
Definition at line 269 of file compiler.h.
| #define PASS 0 |
Definition at line 81 of file compiler.h.
| #define SET 1 |
Definition at line 260 of file compiler.h.
| #define SET_BIT_X | ( | addrx, | |||
| mask | ) | (*addrx = (*addrx | mask)) |
Definition at line 267 of file compiler.h.
| #define SET_SFR_BIT | ( | sfr_reg, | |||
| bit_pos, | |||||
| bit_val | ) | { sfr_reg &= ~(1<<(bit_pos)); sfr_reg |= ((bit_val)<<(bit_pos));} |
Definition at line 329 of file compiler.h.
| #define TID_GUARD | ( | proc | ) | ((__TID__ & 0x7FF0) != ((90 << 8) | ((proc) << 4))) |
Definition at line 332 of file compiler.h.
| #define TRUE (1==1) |
Definition at line 249 of file compiler.h.
Referenced by main(), mc_disable_during_inrush(), mc_inrush_task(), mc_overcurrent_detect(), mci_retry_run(), mci_run(), mystrncmp(), ovfl_timer0(), parse_cmd(), uart_init(), and ushell_task().
| #define TST_BIT_X | ( | addrx, | |||
| mask | ) | (*addrx & mask) |
Definition at line 266 of file compiler.h.
| #define Upper | ( | val, | |||
| n | ) | ( ((val)+(n)) & ~((n)-1) ) |
Definition at line 282 of file compiler.h.
| typedef char bit |
Definition at line 128 of file compiler.h.
| typedef unsigned char Bool |
Definition at line 76 of file compiler.h.
| typedef unsigned char Byte |
Definition at line 111 of file compiler.h.
| typedef unsigned long int DWord |
Definition at line 113 of file compiler.h.
| typedef float Float16 |
Definition at line 64 of file compiler.h.
| typedef int Int16 |
Definition at line 108 of file compiler.h.
| typedef long int Int32 |
Definition at line 109 of file compiler.h.
| typedef char Int8 |
Definition at line 107 of file compiler.h.
| typedef int p_uart_ptchar |
Definition at line 129 of file compiler.h.
| typedef char r_uart_gtchar |
Definition at line 131 of file compiler.h.
| typedef int r_uart_ptchar |
Definition at line 130 of file compiler.h.
| typedef signed short S16 |
Definition at line 70 of file compiler.h.
| typedef long S32 |
Definition at line 71 of file compiler.h.
| typedef signed char S8 |
Definition at line 69 of file compiler.h.
Definition at line 79 of file compiler.h.
| typedef Bool Status_bool |
Definition at line 80 of file compiler.h.
| typedef unsigned short U16 |
Definition at line 67 of file compiler.h.
| typedef unsigned long U32 |
Definition at line 68 of file compiler.h.
| typedef unsigned char U8 |
Definition at line 66 of file compiler.h.
| typedef unsigned char Uchar |
Definition at line 100 of file compiler.h.
| typedef unsigned int Uint16 |
Definition at line 104 of file compiler.h.
| typedef unsigned long int Uint32 |
Definition at line 105 of file compiler.h.
| typedef unsigned char Uint8 |
Definition at line 103 of file compiler.h.
| typedef unsigned int Word |
Definition at line 112 of file compiler.h.
1.5.7.1