diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-05-28 15:17:20 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-05-28 15:17:20 +0200 |
commit | 460ecf074d133cbe026cbddb7cf5fad1180c9831 (patch) | |
tree | 2beb0cfa84698dbb723c7c62acec703fad3437da /src/arch/blinkenrocket | |
parent | cf3ba89c46301bb8c0a1eda470c353801117fc0b (diff) |
Set loop/wakeup/ostream either via .config or via app/commandline
Diffstat (limited to 'src/arch/blinkenrocket')
-rw-r--r-- | src/arch/blinkenrocket/arch.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/arch/blinkenrocket/arch.cc b/src/arch/blinkenrocket/arch.cc index ed55d5d..7f9497e 100644 --- a/src/arch/blinkenrocket/arch.cc +++ b/src/arch/blinkenrocket/arch.cc @@ -10,7 +10,7 @@ void Arch::setup(void) { -#if defined(WITH_LOOP) || defined(TIMER_S) +#if defined(CONFIG_loop) || defined(TIMER_S) TCCR1A = 0; TCCR1B = _BV(WGM12) | _BV(CS12) | _BV(CS10); // /1024 OCR1A = F_CPU / 1024; @@ -27,11 +27,11 @@ void Arch::setup(void) sei(); } -#ifdef WITH_WAKEUP +#ifdef CONFIG_wakeup void wakeup(); #endif -#if defined(WITH_LOOP) || defined(TIMER_S) +#if defined(CONFIG_loop) || defined(TIMER_S) #include "driver/uptime.h" void loop(); @@ -45,10 +45,10 @@ void Arch::idle_loop(void) asm("sleep"); SMCR = 0; asm("wdr"); -#ifdef WITH_LOOP +#ifdef CONFIG_loop loop(); #endif -#ifdef WITH_WAKEUP +#ifdef CONFIG_wakeup wakeup(); #endif #ifdef TIMER_S @@ -81,7 +81,7 @@ void Arch::delay_ms(unsigned int const ms) Arch arch; -#if defined(WITH_LOOP) || defined(TIMER_S) +#if defined(CONFIG_loop) || defined(TIMER_S) ISR(TIMER1_COMPA_vect) { |