From 66787d1126f26c3e05cc29f98b490796b6173c69 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 27 Mar 2022 12:16:15 +0000 Subject: [PATCH] OCTOSPIv2 now working in STR mode, still problems in DTR mode. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15560 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/LLD/OCTOSPIv2/hal_wspi_lld.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/os/hal/ports/STM32/LLD/OCTOSPIv2/hal_wspi_lld.c b/os/hal/ports/STM32/LLD/OCTOSPIv2/hal_wspi_lld.c index bd4be92c5..e24b2098d 100644 --- a/os/hal/ports/STM32/LLD/OCTOSPIv2/hal_wspi_lld.c +++ b/os/hal/ports/STM32/LLD/OCTOSPIv2/hal_wspi_lld.c @@ -84,17 +84,9 @@ static void wspi_lld_serve_mdma_interrupt(WSPIDriver *wspip, uint32_t flags) { (void)wspip; (void)flags; - if (((flags & STM32_MDMA_CISR_CTCIF) != 0U) && - (wspip->state == WSPI_RECEIVE)) { - /* Portable WSPI ISR code defined in the high level driver, note, it is - a macro.*/ - _wspi_isr_code(wspip); - - mdmaChannelDisableX(wspip->mdma); - } /* DMA errors handling.*/ #if defined(STM32_WSPI_MDMA_ERROR_HOOK) - else if ((flags & STM32_MDMA_CISR_TEIF) != 0) { + if ((flags & STM32_MDMA_CISR_TEIF) != 0) { STM32_WSPI_MDMA_ERROR_HOOK(wspip); } #endif @@ -323,7 +315,6 @@ void wspi_lld_receive(WSPIDriver *wspip, const wspi_command_t *cmdp, STM32_MDMA_CTCR_DINC_INC | /* Destination incr. */ STM32_MDMA_CTCR_SINC_FIXED; /* Source fixed. */ uint32_t ccr = STM32_MDMA_CCR_PL(STM32_WSPI_OCTOSPI1_MDMA_PRIORITY) | - STM32_MDMA_CCR_CTCIE | /* On transfer complete.*/ STM32_MDMA_CCR_TEIE; /* On transfer error. */ /* MDMA initializations.*/