33 #if !defined(ICACHE_FLASH)
34 #ifndef ICACHE_RAM_ATTR
36 #define ICACHE_RAM_ATTR __attribute__((section(".iram0.text")))
39 #ifndef ICACHE_RAM_ATTR
40 #define ICACHE_RAM_ATTR
45 #define RTC_BSS_ATTR __attribute__((section(".rtc.bss")))
50 #define RTC_DATA_ATTR __attribute__((section(".rtc.data")))
55 #define NOT_YET_IMPLEMENTED() LOG_INFO("%s not yet implemented\n", __func__)
57 #define NOT_SUPPORTED() LOG_INFO("%s not supported\n", __func__)
68 #define CHECK_PARAM_RET(cond, err) if (!(cond)) \
70 DEBUG("%s parameter condition (" #cond ") " \
71 "not fulfilled\n", __func__); \
82 #define CHECK_PARAM(cond) if (!(cond)) \
84 DEBUG("%s parameter condition (" #cond ") " \
85 "not fulfilled\n", __func__); \
91 #define CHECK_PARAM_RET(cond, err) if (!(cond)) { return err; }
92 #define CHECK_PARAM(cond) if (!(cond)) { return; }
101 #define system_get_cpu_freq ets_get_cpu_frequency
102 #define system_update_cpu_freq ets_update_cpu_frequency
109 #ifndef USEC_PER_MSEC
110 #define USEC_PER_MSEC 1000UL
114 #define MSEC_PER_SEC 1000UL
Common log macros for ESP SoCs.
Macro to return string representation of x.