From 9dff48afd2631118d1309199393f4f5904eaa9ee Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Fri, 3 Jan 2025 12:12:01 +0100 Subject: [PATCH] fixup! feat(core:): introduce BLE driver --- core/embed/io/nrf/stm32u5/nrf.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/core/embed/io/nrf/stm32u5/nrf.c b/core/embed/io/nrf/stm32u5/nrf.c index d878245bae..66eec2d610 100644 --- a/core/embed/io/nrf/stm32u5/nrf.c +++ b/core/embed/io/nrf/stm32u5/nrf.c @@ -640,16 +640,6 @@ void GPDMA1_Channel1_IRQHandler(void) { /// SPI communication /// ---------------------------------------------------------- -static bool start_spi_dma(nrf_driver_t *drv) { - if (!drv->comm_running) { - return false; - } - - HAL_SPI_Receive_DMA(&drv->spi, drv->long_rx_buffer, SPI_PACKET_SIZE); - - return true; -} - void GPDMA1_Channel2_IRQHandler(void) { IRQ_LOG_ENTER(); @@ -707,7 +697,8 @@ void HAL_SPI_RxCpltCallback(SPI_HandleTypeDef *hspi) { nrf_process_msg(drv, drv->long_rx_buffer, SPI_PACKET_SIZE, header->service_id & 0x0F, SPI_HEADER_SIZE, SPI_OVERHEAD_SIZE); - start_spi_dma(drv); + + HAL_SPI_Receive_DMA(&drv->spi, drv->long_rx_buffer, SPI_PACKET_SIZE); } /// GPIO communication