|
|
@ -40,24 +40,20 @@ int os_printf(const char *format, ...) __attribute__ ((format (printf, 1, 2))); |
|
|
|
int os_snprintf(char *str, size_t size, const char *format, ...) __attribute__ ((format (printf, 3, 4))); |
|
|
|
int os_snprintf(char *str, size_t size, const char *format, ...) __attribute__ ((format (printf, 3, 4))); |
|
|
|
int os_printf_plus(const char *format, ...) __attribute__ ((format (printf, 1, 2))); |
|
|
|
int os_printf_plus(const char *format, ...) __attribute__ ((format (printf, 1, 2))); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// memory allocation functions are "different" due to memory debugging functionality
|
|
|
|
|
|
|
|
// added in SDK 1.4.0
|
|
|
|
|
|
|
|
void vPortFree(void *ptr, char * file, int line); |
|
|
|
|
|
|
|
void *pvPortMalloc(size_t xWantedSize, char * file, int line); |
|
|
|
|
|
|
|
void *pvPortZalloc(size_t, char * file, int line); |
|
|
|
|
|
|
|
void *vPortMalloc(size_t xWantedSize); |
|
|
|
void pvPortFree(void *ptr); |
|
|
|
void pvPortFree(void *ptr); |
|
|
|
void *pvPortMalloc(size_t xWantedSize); |
|
|
|
|
|
|
|
void *pvPortZalloc(size_t); |
|
|
|
|
|
|
|
void uart_div_modify(int no, unsigned int freq); |
|
|
|
void uart_div_modify(int no, unsigned int freq); |
|
|
|
void vPortFree(void *ptr); |
|
|
|
|
|
|
|
void *vPortMalloc(size_t xWantedSize); |
|
|
|
|
|
|
|
uint32 system_get_time(); |
|
|
|
uint32 system_get_time(); |
|
|
|
//uint8 wifi_get_opmode(void); // defined in SDK 1.0.0 onwards
|
|
|
|
|
|
|
|
//int os_random(); // defined in SDK 1.1.0 onwards
|
|
|
|
|
|
|
|
int rand(void); |
|
|
|
int rand(void); |
|
|
|
void ets_bzero(void *s, size_t n); |
|
|
|
void ets_bzero(void *s, size_t n); |
|
|
|
void ets_delay_us(int ms); |
|
|
|
void ets_delay_us(int ms); |
|
|
|
|
|
|
|
|
|
|
|
// Shortcuts for memory functions
|
|
|
|
|
|
|
|
#define os_malloc pvPortMalloc |
|
|
|
|
|
|
|
#define os_free vPortFree |
|
|
|
|
|
|
|
#define os_zalloc pvPortZalloc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// disappeared in SDK 1.1.0:
|
|
|
|
// disappeared in SDK 1.1.0:
|
|
|
|
#define os_timer_done ets_timer_done |
|
|
|
#define os_timer_done ets_timer_done |
|
|
|
#define os_timer_handler_isr ets_timer_handler_isr |
|
|
|
#define os_timer_handler_isr ets_timer_handler_isr |
|
|
@ -71,4 +67,12 @@ void ets_delay_us(int ms); |
|
|
|
|( (((FUNC&BIT2)<<2)|(FUNC&0x3))<<PERIPHS_IO_MUX_FUNC_S) ); \
|
|
|
|
|( (((FUNC&BIT2)<<2)|(FUNC&0x3))<<PERIPHS_IO_MUX_FUNC_S) ); \
|
|
|
|
} while (0) |
|
|
|
} while (0) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Shortcuts for memory functions
|
|
|
|
|
|
|
|
//#define os_malloc pvPortMalloc // defined in SDK 1.4.0 onwards
|
|
|
|
|
|
|
|
//#define os_free vPortFree // defined in SDK 1.4.0 onwards
|
|
|
|
|
|
|
|
//#define os_zalloc pvPortZalloc // defined in SDK 1.4.0 onwards
|
|
|
|
|
|
|
|
//uint8 wifi_get_opmode(void); // defined in SDK 1.0.0 onwards
|
|
|
|
|
|
|
|
//int os_random(); // defined in SDK 1.1.0 onwards
|
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|