Fix defines

pull/13397/head
winneymj 2020-08-16 12:42:18 -05:00
parent 21c928e6e5
commit b72adbe5c0
1 changed files with 4 additions and 4 deletions

View File

@ -43,9 +43,9 @@
#include "PortNames.h"
#include "PeripheralNames.h"
#include "PinNames.h"
#if NRFX_SPIM_ENABLED || defined(DEVICE_SPIM)
#if NRFX_SPIM_ENABLED && DEVICE_SPI
#include "nrfx_spim.h"
#elif NRFX_SPI_ENABLED || defined(DEVICE_SPI)
#elif DEVICE_SPI
#include "nrfx_spi.h"
#endif
#include "nrf_twi.h"
@ -94,9 +94,9 @@ struct serial_s {
struct spi_s {
int instance;
PinName cs;
#if NRFX_SPIM_ENABLED || defined(DEVICE_SPIM)
#if NRFX_SPIM_ENABLED && DEVICE_SPI
nrfx_spim_config_t config;
#elif NRFX_SPI_ENABLED || defined(DEVICE_SPI)
#elif DEVICE_SPI
nrfx_spi_config_t config;
#endif
bool update;