From 5d633cd6d146ec5006543d0dad5c28bf73cd1371 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie <alexandre.abadie@inria.fr> Date: Thu, 21 Jun 2018 08:52:31 +0200 Subject: [PATCH] cpu/lm4f120: drop useless periph timer guards --- cpu/lm4f120/periph/spi.c | 4 ---- cpu/lm4f120/periph/timer.c | 5 ----- 2 files changed, 9 deletions(-) diff --git a/cpu/lm4f120/periph/spi.c b/cpu/lm4f120/periph/spi.c index ef9fe6f1fc..f9e879f151 100644 --- a/cpu/lm4f120/periph/spi.c +++ b/cpu/lm4f120/periph/spi.c @@ -27,8 +27,6 @@ #define ENABLE_DEBUG (0) #include "debug.h" -#ifdef SPI_NUMOF - /** * @brief Array holding one pre-initialized mutex for each SPI device */ @@ -137,5 +135,3 @@ void spi_transfer_bytes(spi_t bus, spi_cs_t cs, bool cont, gpio_set((gpio_t)cs); } } - -#endif /* SPI_NUMOF */ diff --git a/cpu/lm4f120/periph/timer.c b/cpu/lm4f120/periph/timer.c index 97da40450c..ab37fc8938 100644 --- a/cpu/lm4f120/periph/timer.c +++ b/cpu/lm4f120/periph/timer.c @@ -29,9 +29,6 @@ #define ENABLE_DEBUG (0) #include "debug.h" -/* guard file in case no timers are defined */ -#if TIMER_NUMOF - /** * @brief Struct holding the configuration data * @{ @@ -344,6 +341,4 @@ void isr_wtimer1a(void) cortexm_isr_end(); } #endif /* TIMER_1_EN */ - -#endif /* TIMER_NUMOF */ /** @} */ -- GitLab