mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +03:00
Update SDK to 1.5.2 (#1653)
patch included: http://bbs.espressif.com/viewtopic.php?f=46&t=1856
This commit is contained in:
@ -40,6 +40,7 @@ typedef struct _ETSTIMER_ {
|
||||
typedef void (*int_handler_t)(void*);
|
||||
|
||||
#define ETS_SLC_INUM 1
|
||||
#define ETS_SDIO_INUM 1
|
||||
#define ETS_SPI_INUM 2
|
||||
#define ETS_GPIO_INUM 4
|
||||
#define ETS_UART_INUM 5
|
||||
@ -145,6 +146,16 @@ inline uint32_t ETS_INTR_PENDING(void)
|
||||
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)
|
||||
|
||||
#define ETS_SDIO_INTR_DISABLE() \
|
||||
ETS_INTR_DISABLE(ETS_SDIO_INUM)
|
||||
|
||||
|
||||
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);
|
||||
|
Reference in New Issue
Block a user