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
This commit is contained in:
Giovanni Di Sirio 2022-03-27 12:16:15 +00:00
parent 6c33dd8c86
commit 66787d1126
1 changed files with 1 additions and 10 deletions

View File

@ -84,17 +84,9 @@ static void wspi_lld_serve_mdma_interrupt(WSPIDriver *wspip, uint32_t flags) {
(void)wspip; (void)wspip;
(void)flags; (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.*/ /* DMA errors handling.*/
#if defined(STM32_WSPI_MDMA_ERROR_HOOK) #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); STM32_WSPI_MDMA_ERROR_HOOK(wspip);
} }
#endif #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_DINC_INC | /* Destination incr. */
STM32_MDMA_CTCR_SINC_FIXED; /* Source fixed. */ STM32_MDMA_CTCR_SINC_FIXED; /* Source fixed. */
uint32_t ccr = STM32_MDMA_CCR_PL(STM32_WSPI_OCTOSPI1_MDMA_PRIORITY) | 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. */ STM32_MDMA_CCR_TEIE; /* On transfer error. */
/* MDMA initializations.*/ /* MDMA initializations.*/