summaryrefslogtreecommitdiff
path: root/src/arch/esp8266
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-05-28 15:17:20 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2021-05-28 15:17:20 +0200
commit460ecf074d133cbe026cbddb7cf5fad1180c9831 (patch)
tree2beb0cfa84698dbb723c7c62acec703fad3437da /src/arch/esp8266
parentcf3ba89c46301bb8c0a1eda470c353801117fc0b (diff)
Set loop/wakeup/ostream either via .config or via app/commandline
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
}