diff options
Diffstat (limited to 'src/arch/lm4f120h5qr-stellaris')
-rw-r--r-- | src/arch/lm4f120h5qr-stellaris/arch.cc | 10 | ||||
-rw-r--r-- | src/arch/lm4f120h5qr-stellaris/lm4f_cpp_wrapper.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/arch/lm4f120h5qr-stellaris/arch.cc b/src/arch/lm4f120h5qr-stellaris/arch.cc index c87af2f..e613e42 100644 --- a/src/arch/lm4f120h5qr-stellaris/arch.cc +++ b/src/arch/lm4f120h5qr-stellaris/arch.cc @@ -20,16 +20,16 @@ extern "C" { void Arch::setup(void) { arch_clock_init(); -#if defined(WITH_LOOP) +#if defined(CONFIG_loop) arch_init_loop(); #endif } -#ifdef WITH_WAKEUP +#ifdef CONFIG_wakeup extern void wakeup(); #endif -#if defined(WITH_LOOP) +#if defined(CONFIG_loop) extern void loop(); extern volatile char run_loop; #endif @@ -56,7 +56,7 @@ void Arch::idle_loop(void) { while (1) { __asm__("wfi"); -#ifdef WITH_LOOP +#ifdef CONFIG_loop if (run_loop) { #ifdef TIMER_S uptime.tick_s(); @@ -71,7 +71,7 @@ void Arch::idle_loop(void) void Arch::idle(void) { __asm__("wfi"); -#ifdef WITH_WAKEUP +#ifdef CONFIG_wakeup wakeup(); #endif } diff --git a/src/arch/lm4f120h5qr-stellaris/lm4f_cpp_wrapper.c b/src/arch/lm4f120h5qr-stellaris/lm4f_cpp_wrapper.c index 62f1c20..877316f 100644 --- a/src/arch/lm4f120h5qr-stellaris/lm4f_cpp_wrapper.c +++ b/src/arch/lm4f120h5qr-stellaris/lm4f_cpp_wrapper.c @@ -17,7 +17,7 @@ void arch_clock_init() rcc_sysclk_config(OSCSRC_MOSC, XTAL_16M, 5); } -#ifdef WITH_LOOP +#ifdef CONFIG_loop volatile char run_loop = 1; void arch_init_loop() |