diff options
author | Nick Brassel <nick@tzarc.org> | 2021-08-21 13:38:38 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-21 13:38:38 +1000 |
commit | afd3bcbf45a9b7de097d7666ced2c674192949e5 (patch) | |
tree | a90e651af132db2ad0991b1ebe5319c74b5f9c04 | |
parent | ce379ef458fd9092543fb4022aab6e455865f514 (diff) | |
download | qmk_firmware-afd3bcbf45a9b7de097d7666ced2c674192949e5.tar.gz qmk_firmware-afd3bcbf45a9b7de097d7666ced2c674192949e5.zip |
Fix up compilation issues. (#14095)
-rw-r--r-- | drivers/eeprom/eeprom_spi.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/eeprom/eeprom_spi.c b/drivers/eeprom/eeprom_spi.c index 182731d82f..e273090854 100644 --- a/drivers/eeprom/eeprom_spi.c +++ b/drivers/eeprom/eeprom_spi.c @@ -31,6 +31,8 @@ */ #include "wait.h" +#include "debug.h" +#include "timer.h" #include "spi_master.h" #include "eeprom.h" #include "eeprom_spi.h" @@ -50,11 +52,6 @@ # define EXTERNAL_EEPROM_SPI_TIMEOUT 100 #endif -#if defined(CONSOLE_ENABLE) && defined(DEBUG_EEPROM_OUTPUT) -# include "timer.h" -# include "debug.h" -#endif // CONSOLE_ENABLE - static bool spi_eeprom_start(void) { return spi_start(EXTERNAL_EEPROM_SPI_SLAVE_SELECT_PIN, EXTERNAL_EEPROM_SPI_LSBFIRST, EXTERNAL_EEPROM_SPI_MODE, EXTERNAL_EEPROM_SPI_CLOCK_DIVISOR); } static spi_status_t spi_eeprom_wait_while_busy(int timeout) { |