aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2021-08-21 13:38:38 +1000
committerGitHub <noreply@github.com>2021-08-21 13:38:38 +1000
commitafd3bcbf45a9b7de097d7666ced2c674192949e5 (patch)
treea90e651af132db2ad0991b1ebe5319c74b5f9c04 /drivers
parentce379ef458fd9092543fb4022aab6e455865f514 (diff)
downloadqmk_firmware-afd3bcbf45a9b7de097d7666ced2c674192949e5.tar.gz
qmk_firmware-afd3bcbf45a9b7de097d7666ced2c674192949e5.zip
Fix up compilation issues. (#14095)
Diffstat (limited to 'drivers')
-rw-r--r--drivers/eeprom/eeprom_spi.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/eeprom/eeprom_spi.c b/drivers/eeprom/eeprom_spi.c
index 182731d82..e27309085 100644
--- a/drivers/eeprom/eeprom_spi.c
+++ b/drivers/eeprom/eeprom_spi.c
@@ -31,6 +31,8 @@
31*/ 31*/
32 32
33#include "wait.h" 33#include "wait.h"
34#include "debug.h"
35#include "timer.h"
34#include "spi_master.h" 36#include "spi_master.h"
35#include "eeprom.h" 37#include "eeprom.h"
36#include "eeprom_spi.h" 38#include "eeprom_spi.h"
@@ -50,11 +52,6 @@
50# define EXTERNAL_EEPROM_SPI_TIMEOUT 100 52# define EXTERNAL_EEPROM_SPI_TIMEOUT 100
51#endif 53#endif
52 54
53#if defined(CONSOLE_ENABLE) && defined(DEBUG_EEPROM_OUTPUT)
54# include "timer.h"
55# include "debug.h"
56#endif // CONSOLE_ENABLE
57
58static 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); } 55static 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); }
59 56
60static spi_status_t spi_eeprom_wait_while_busy(int timeout) { 57static spi_status_t spi_eeprom_wait_while_busy(int timeout) {