switched to new SDK
minor changes
This commit is contained in:
26
c++.h
26
c++.h
@@ -4,7 +4,7 @@
|
||||
#define FALSE false
|
||||
|
||||
typedef void (*int_handler_t)(void*);
|
||||
|
||||
/*
|
||||
void *pvPortMalloc(size_t xWantedSize, const char* file, int line) __attribute__((malloc, alloc_size(1)));
|
||||
void *pvPortRealloc(void* ptr, size_t xWantedSize, const char* file, int line) __attribute__((alloc_size(2)));
|
||||
void vPortFree(void *ptr, const char* file, int line);
|
||||
@@ -29,7 +29,6 @@ void ets_install_putc1(void* routine);
|
||||
void uart_div_modify(int no, int freq);
|
||||
//STATUS uart_tx_one_char(uint8_t uart, uint8_t TxChar);
|
||||
|
||||
|
||||
void ets_isr_mask(int intr);
|
||||
void ets_isr_unmask(int intr);
|
||||
void ets_isr_attach(int intr, int_handler_t handler, void *arg);
|
||||
@@ -54,7 +53,7 @@ typedef void (*int_handler_t)(void*);
|
||||
#define ETS_CCOMPARE0_INUM 6
|
||||
#define ETS_SOFT_INUM 7
|
||||
#define ETS_WDT_INUM 8
|
||||
#define ETS_FRC_TIMER1_INUM 9 /* use edge*/
|
||||
#define ETS_FRC_TIMER1_INUM 9 // use edge
|
||||
|
||||
#define ETS_INTR_LOCK() \
|
||||
ets_intr_lock()
|
||||
@@ -99,18 +98,18 @@ inline uint32_t ETS_INTR_PENDING(void)
|
||||
#define ETS_CCOMPARE0_DISABLE() \
|
||||
ETS_INTR_DISABLE(ETS_CCOMPARE0_INUM)
|
||||
|
||||
/*
|
||||
|
||||
//#define ETS_FRC_TIMER1_INTR_ATTACH(func, arg) \
|
||||
// ets_isr_attach(ETS_FRC_TIMER1_INUM, (int_handler_t)(func), (void *)(arg))
|
||||
*/
|
||||
|
||||
|
||||
#define ETS_FRC_TIMER1_NMI_INTR_ATTACH(func) \
|
||||
NmiTimSetFunc(func)
|
||||
|
||||
/*
|
||||
|
||||
//#define ETS_GPIO_INTR_ATTACH(func, arg) \
|
||||
// ets_isr_attach(ETS_GPIO_INUM, (int_handler_t)(func), (void *)(arg))
|
||||
*/
|
||||
|
||||
|
||||
#define ETS_GPIO_INTR_ENABLE() \
|
||||
ETS_INTR_ENABLE(ETS_GPIO_INUM)
|
||||
@@ -118,10 +117,10 @@ inline uint32_t ETS_INTR_PENDING(void)
|
||||
#define ETS_GPIO_INTR_DISABLE() \
|
||||
ETS_INTR_DISABLE(ETS_GPIO_INUM)
|
||||
|
||||
/*
|
||||
|
||||
//#define ETS_UART_INTR_ATTACH(func, arg) \
|
||||
// ets_isr_attach(ETS_UART_INUM, (int_handler_t)(func), (void *)(arg))
|
||||
*/
|
||||
|
||||
|
||||
#define ETS_UART_INTR_ENABLE() \
|
||||
ETS_INTR_ENABLE(ETS_UART_INUM)
|
||||
@@ -135,10 +134,10 @@ inline uint32_t ETS_INTR_PENDING(void)
|
||||
#define ETS_FRC1_INTR_DISABLE() \
|
||||
ETS_INTR_DISABLE(ETS_FRC_TIMER1_INUM)
|
||||
|
||||
/*
|
||||
|
||||
//#define ETS_SPI_INTR_ATTACH(func, arg) \
|
||||
// ets_isr_attach(ETS_SPI_INUM, (int_handler_t)(func), (void *)(arg))
|
||||
*/
|
||||
|
||||
|
||||
#define ETS_SPI_INTR_ENABLE() \
|
||||
ETS_INTR_ENABLE(ETS_SPI_INUM)
|
||||
@@ -156,10 +155,9 @@ inline uint32_t ETS_INTR_PENDING(void)
|
||||
#define ETS_SLC_INTR_DISABLE() \
|
||||
ETS_INTR_DISABLE(ETS_SLC_INUM)
|
||||
|
||||
/*
|
||||
|
||||
//#define ETS_SDIO_INTR_ATTACH(func, arg) \
|
||||
// ets_isr_attach(ETS_SDIO_INUM, (int_handler_t)(func), (void *)(arg))
|
||||
*/
|
||||
|
||||
#define ETS_SDIO_INTR_ENABLE() \
|
||||
ETS_INTR_ENABLE(ETS_SDIO_INUM)
|
||||
@@ -185,7 +183,7 @@ extern void ets_delay_us(uint32_t us);
|
||||
extern int os_printf_plus(const char * format, ...) __attribute__ ((format (printf, 1, 2)));
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
bool wifi_station_get_config(struct station_config *config);
|
||||
|
||||
Reference in New Issue
Block a user