main: fix SPI init

This commit is contained in:
King Kévin 2023-03-13 19:40:05 +01:00
parent 66a6149fdf
commit 66816abc9f
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,10 @@
#include "sdkconfig.h"
#include "driver/gpio.h"
#include "driver/spi_slave.h"
// get the length of an array
#define LENGTH(x) (sizeof(x) / sizeof((x)[0]))
// GPIO to force DFU mode (on high)
#define DFU_PIN 14