29 #include "user_config.h" 31 #define os_bzero ets_bzero 32 #define os_delay_us ets_delay_us 33 #define os_install_putc1 ets_install_putc1 35 #define os_memcmp ets_memcmp 36 #define os_memcpy ets_memcpy 37 #define os_memmove ets_memmove 38 #define os_memset ets_memset 39 #define os_strcat strcat 40 #define os_strchr strchr 41 #define os_strcmp ets_strcmp 42 #define os_strcpy ets_strcpy 43 #define os_strlen ets_strlen 44 #define os_strncmp ets_strncmp 45 #define os_strncpy ets_strncpy 46 #define os_strstr ets_strstr 48 #define os_timer_arm_us(a, b, c) ets_timer_arm_new(a, b, c, 0) 50 #define os_timer_arm(a, b, c) ets_timer_arm_new(a, b, c, 1) 51 #define os_timer_disarm ets_timer_disarm 52 #define os_timer_setfn ets_timer_setfn 54 #define os_sprintf ets_sprintf 56 #ifdef USE_OPTIMIZE_PRINTF 57 #define os_printf(fmt, ...) do { \ 58 static const char flash_str[] ICACHE_RODATA_ATTR STORE_ATTR = fmt; \ 59 os_printf_plus(flash_str, ##__VA_ARGS__); \ 62 #define os_printf os_printf_plus int os_get_random(unsigned char *buf, size_t len)
unsigned long os_random(void)