summaryrefslogtreecommitdiff
path: root/src/arch/esp8266
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/esp8266')
-rw-r--r--src/arch/esp8266/arch.cc4
-rw-r--r--src/arch/esp8266/driver/stdin.cc4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/esp8266/arch.cc b/src/arch/esp8266/arch.cc
index 1d63e67..656a700 100644
--- a/src/arch/esp8266/arch.cc
+++ b/src/arch/esp8266/arch.cc
@@ -22,7 +22,7 @@ extern void (*__init_array_end)();
#define user_procTaskPrio 0
#define user_procTaskQueueLen 1
-#ifdef WITH_LOOP
+#ifdef CONFIG_loop
LOCAL os_timer_t loop_timer;
extern void loop(void);
@@ -40,7 +40,7 @@ void ICACHE_FLASH_ATTR jump_to_main(void)
for (void (**p)() = &__init_array_start; p != &__init_array_start; p++) {
(*p)();
}
-#ifdef WITH_LOOP
+#ifdef CONFIG_loop
os_timer_disarm(&loop_timer);
os_timer_setfn(&loop_timer, (os_timer_func_t *)jump_to_loop, (void *)0);
os_timer_arm(&loop_timer, 1000, 1);
diff --git a/src/arch/esp8266/driver/stdin.cc b/src/arch/esp8266/driver/stdin.cc
index bbb3be0..7032d81 100644
--- a/src/arch/esp8266/driver/stdin.cc
+++ b/src/arch/esp8266/driver/stdin.cc
@@ -38,7 +38,7 @@ void ets_isr_unmask(uint16_t idx);
#define UCTOE 31
-#ifdef WITH_WAKEUP
+#ifdef CONFIG_wakeup
void wakeup();
#endif
@@ -50,7 +50,7 @@ void uart_isr()
}
}
USIC = USIS;
-#ifdef WITH_WAKEUP
+#ifdef CONFIG_wakeup
wakeup();
#endif
}