2016-01-20 09:37:03 +01:00
|
|
|
#ifndef _SDK_OVERRIDE_OSAPI_H_
|
|
|
|
#define _SDK_OVERRIDE_OSAPI_H_
|
|
|
|
|
|
|
|
#include "rom.h"
|
|
|
|
void ets_timer_arm_new (ETSTimer *a, int b, int c, int isMstimer);
|
|
|
|
|
2016-01-23 22:41:41 +01:00
|
|
|
int atoi(const char *nptr);
|
2016-01-23 00:17:53 +01:00
|
|
|
int os_printf(const char *format, ...) __attribute__ ((format (printf, 1, 2)));
|
|
|
|
int os_printf_plus(const char *format, ...) __attribute__ ((format (printf, 1, 2)));
|
|
|
|
|
2016-04-17 23:44:18 +02:00
|
|
|
unsigned int uart_baudrate_detect(unsigned int uart_no, unsigned int async);
|
|
|
|
|
2016-02-18 03:07:33 +01:00
|
|
|
void NmiTimSetFunc(void (*func)(void));
|
|
|
|
|
2016-03-24 00:06:09 +01:00
|
|
|
void call_user_start(void);
|
|
|
|
|
2016-01-20 09:37:03 +01:00
|
|
|
#include_next "osapi.h"
|
|
|
|
|
2017-04-04 21:31:06 +02:00
|
|
|
#ifdef ENABLE_TIMER_SUSPEND
|
|
|
|
extern void swtmr_register(void* timer_ptr);
|
|
|
|
#undef os_timer_arm
|
|
|
|
#define os_timer_arm(timer_ptr, duration, mode) do{swtmr_register(timer_ptr); \
|
|
|
|
ets_timer_arm_new(timer_ptr, duration, mode, 1);}while(0);
|
|
|
|
|
|
|
|
extern void swtmr_unregister(void* timer_ptr);
|
|
|
|
#undef os_timer_disarm
|
|
|
|
#define os_timer_disarm(timer_ptr) do{swtmr_unregister(timer_ptr); ets_timer_disarm(timer_ptr);}while(0);
|
|
|
|
#endif
|
|
|
|
|
2016-01-20 09:37:03 +01:00
|
|
|
#endif
|