This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define SPI_INSTANCE 1 /**< SPI instance index. */ | |
#define BUFF_LENGTH 2 /**< Transfer length. */ | |
static const nrf_drv_spi_t spi = NRF_DRV_SPI_INSTANCE(SPI_INSTANCE); /**< SPI instance. */ | |
static uint8_t m_tx_buf[BUFF_LENGTH]; /**< TX buffer. */ | |
static uint8_t m_rx_buf[BUFF_LENGTH]; /**< RX buffer. */ | |
static volatile bool burst_completed = false; | |
static volatile bool spi_xfer_done = false; /**< Flag used to indicate that SPI instance completed the transfer. */ |