34 #if !defined(ICACHE_FLASH)
35 #ifndef ICACHE_RAM_ATTR
37 #define ICACHE_RAM_ATTR __attribute__((section(".iram0.text")))
40 #ifndef ICACHE_RAM_ATTR
41 #define ICACHE_RAM_ATTR
46 #define RTC_BSS_ATTR __attribute__((section(".rtc.bss")))
51 #define RTC_DATA_ATTR __attribute__((section(".rtc.data")))
56 #define NOT_YET_IMPLEMENTED() LOG_INFO("%s not yet implemented\n", __func__)
58 #define NOT_SUPPORTED() LOG_INFO("%s not supported\n", __func__)
69 #define CHECK_PARAM_RET(cond, err) if (!(cond)) \
71 DEBUG("%s parameter condition (" #cond ") " \
72 "not fulfilled\n", __func__); \
83 #define CHECK_PARAM(cond) if (!(cond)) \
85 DEBUG("%s parameter condition (" #cond ") " \
86 "not fulfilled\n", __func__); \
92 #define CHECK_PARAM_RET(cond, err) if (!(cond)) { return err; }
93 #define CHECK_PARAM(cond) if (!(cond)) { return; }
102 #define system_get_cpu_freq ets_get_cpu_frequency
103 #define system_update_cpu_freq ets_update_cpu_frequency
110 #ifndef USEC_PER_MSEC
111 #define USEC_PER_MSEC 1000UL
115 #define MSEC_PER_SEC 1000UL
Common log macros for ESP SoCs.
Macro to return string representation of x.