diff --git a/basic_example/user/user_main.c b/basic_example/user/user_main.c index 45e9132..3a1df42 100644 --- a/basic_example/user/user_main.c +++ b/basic_example/user/user_main.c @@ -10,6 +10,9 @@ os_event_t user_procTaskQueue[user_procTaskQueueLen]; static void loop(os_event_t *events); +// Required by SDK_v1.1.0 +void user_rf_pre_init (void){} + //Main code function static void ICACHE_FLASH_ATTR loop(os_event_t *events) diff --git a/blinky/user/user_main.c b/blinky/user/user_main.c index e0ca1d5..c0c3409 100644 --- a/blinky/user/user_main.c +++ b/blinky/user/user_main.c @@ -11,6 +11,8 @@ static void user_procTask(os_event_t *events); static volatile os_timer_t some_timer; +// Required by SDK_v1.1.0 +void user_rf_pre_init (void){} void some_timerfunc(void *arg) { diff --git a/interrupt_example/user/user_main.c b/interrupt_example/user/user_main.c index f591bee..3a5311f 100644 --- a/interrupt_example/user/user_main.c +++ b/interrupt_example/user/user_main.c @@ -9,6 +9,14 @@ os_event_t user_procTaskQueue[user_procTaskQueueLen]; static void loop(os_event_t *events); +// Check SDK version. (PIN_PULLDWN_EN was removed in SDK_v1.1.0) +#ifndef PIN_PULLDWN_EN + // GPIO_PIN_INTR_ANYEGDE was renamed + #define GPIO_PIN_INTR_ANYEGDE GPIO_PIN_INTR_ANYEDGE +#endif + +// Required by SDK_v1.1.0 +void user_rf_pre_init (void){} // variable modified indirectly by interrupt handler volatile int whatyouwant; @@ -86,7 +94,6 @@ void ICACHE_FLASH_ATTR user_init() // PIN_PULLDWN_EN(PIN_NAME) PIN_PULLUP_DIS(PERIPHS_IO_MUX_GPIO0_U); - PIN_PULLDWN_DIS(PERIPHS_IO_MUX_GPIO0_U); PIN_PULLUP_EN(PERIPHS_IO_MUX_GPIO2_U); //