Fix more SPIM

pull/13397/head
winneymj 2020-07-31 16:29:49 -05:00
parent c6bc6513bd
commit 2d5776a757
1 changed files with 7 additions and 8 deletions

View File

@ -46,6 +46,9 @@
#if NRFX_CHECK(NRFX_SPIM_ENABLED)
#include "nrfx_spim.h"
#elif NRFX_CHECK(NRFX_SPI_ENABLED)
#include "nrfx_spi.h"
#endif
#if 1
#define DEBUG_PRINTF(...) printf(__VA_ARGS__)
@ -53,6 +56,8 @@
#define DEBUG_PRINTF(...)
#endif
#if NRFX_CHECK(NRFX_SPIM_ENABLED)
/* Pre-allocate instances and share them globally. */
static const nrfx_spim_t nordic_nrf5_spim_instance[4] = {
NRFX_SPIM_INSTANCE(0),
@ -871,15 +876,9 @@ void spi_abort_asynch(spi_t *obj)
}
#endif // DEVICE_SPI_ASYNCH
#endif //NRFX_SPIM_ENABLED
#elif NRFX_CHECK(NRFX_SPI_ENABLED)
#include "nrfx_spi.h"
#if 0
#define DEBUG_PRINTF(...) printf(__VA_ARGS__)
#else
#define DEBUG_PRINTF(...)
#endif
#if NRFX_CHECK(NRFX_SPI_ENABLED)
/* Pre-allocate instances and share them globally. */
static const nrfx_spi_t nordic_nrf5_spi_instance[3] = {