mirror of https://github.com/ARMmbed/mbed-os.git
Original pull request had added these checks to a deleted file. Replicating that change to allow builds on the NRF52840_DK (see original PR #4088 to see the explanation for the removal of spi async)
parent
baf45b6596
commit
f324647aae
|
@ -141,11 +141,13 @@ static void master_event_handler(uint8_t spi_idx,
|
||||||
|
|
||||||
if (p_event->type == NRF_DRV_SPI_EVENT_DONE) {
|
if (p_event->type == NRF_DRV_SPI_EVENT_DONE) {
|
||||||
p_spi_info->flag.busy = false;
|
p_spi_info->flag.busy = false;
|
||||||
|
#if DEVICE_SPI_ASYNCH
|
||||||
if (p_spi_info->handler) {
|
if (p_spi_info->handler) {
|
||||||
void (*handler)(void) = (void (*)(void))p_spi_info->handler;
|
void (*handler)(void) = (void (*)(void))p_spi_info->handler;
|
||||||
p_spi_info->handler = 0;
|
p_spi_info->handler = 0;
|
||||||
handler();
|
handler();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#define MASTER_EVENT_HANDLER(idx) \
|
#define MASTER_EVENT_HANDLER(idx) \
|
||||||
|
|
Loading…
Reference in New Issue