38 typedef uint16_t u16_t;
39 typedef int16_t s16_t;
40 typedef uint32_t u32_t;
41 typedef int32_t s32_t;
43 typedef uint8_t uint8;
48 typedef uint16_t uint16;
50 typedef int16_t sint16;
52 typedef uint32_t uint32;
53 typedef uint32_t u_int;
55 typedef int32_t sint32;
57 typedef int32_t int32;
58 typedef int64_t sint64;
59 typedef uint64_t uint64;
62 typedef double real64;
69 #define NULL (void *)0
81 #define BIT(nr) (1UL << (nr))
83 #define REG_WRITE(_r, _v) (*(volatile uint32 *)(_r)) = (_v)
84 #define REG_READ(_r) (*(volatile uint32 *)(_r))
86 #define REG_SET_BIT(_r, _b) (*(volatile uint32 *)(_r) |= (_b))
87 #define REG_CLR_BIT(_r, _b) (*(volatile uint32 *)(_r) &= ~(_b))
89 #define __packed __attribute__((packed))
90 #define STORE_ATTR __attribute__((aligned(4)))
93 #define ICACHE_FLASH_ATTR
95 #define DMEM_ATTR __attribute__((section(".bss")))
96 #define IRAM_ATTR __attribute__((section(".text")))
97 #define ICACHE_RODATA_ATTR __attribute__((section(".irom.text")))