diff --git a/board/stm32h7/llspi.h b/board/stm32h7/llspi.h index ad1dc4d7b..c04934f55 100644 --- a/board/stm32h7/llspi.h +++ b/board/stm32h7/llspi.h @@ -51,12 +51,9 @@ void llspi_miso_dma(uint8_t *addr, int len) { // master -> panda DMA finished void DMA2_Stream2_IRQ_Handler(void) { // Clear interrupt flag - ENTER_CRITICAL(); DMA2->LIFCR = DMA_LIFCR_CTCIF2; spi_rx_done(); - - EXIT_CRITICAL(); } // panda -> master DMA finished @@ -71,8 +68,6 @@ void DMA2_Stream3_IRQ_Handler(void) { // panda TX finished void SPI4_IRQ_Handler(void) { - ENTER_CRITICAL(); - // clear flag SPI4->IFCR |= (0x1FFU << 3U); @@ -80,8 +75,6 @@ void SPI4_IRQ_Handler(void) { spi_tx_dma_done = false; spi_tx_done(false); } - - EXIT_CRITICAL(); }