mirror of https://github.com/rusefi/ChibiOS.git
Changed it a bit.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14231 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
be9f1e8c15
commit
2ca81e8169
|
@ -95,19 +95,20 @@ static void spi_lld_serve_rx_interrupt(SPIDriver *spip, uint32_t ct) {
|
|||
static void spi_lld_serve_tx_interrupt(SPIDriver *spip, uint32_t ct) {
|
||||
|
||||
/* DMA errors handling.*/
|
||||
#if defined(RP_SPI_DMA_ERROR_HOOK)
|
||||
if ((ct & DMA_CTRL_TRIG_AHB_ERROR) != 0U) {
|
||||
|
||||
/* Stopping DMAs.*/
|
||||
dmaChannelDisableX(spip->dmatx);
|
||||
dmaChannelDisableX(spip->dmarx);
|
||||
|
||||
#if defined(RP_SPI_DMA_ERROR_HOOK)
|
||||
RP_SPI_DMA_ERROR_HOOK(spip);
|
||||
}
|
||||
#else
|
||||
(void)spip;
|
||||
(void)ct;
|
||||
#endif
|
||||
|
||||
/* A completion is enforced here, since the RX interrupt will no
|
||||
more happen.*/
|
||||
_spi_isr_code(spip);
|
||||
}
|
||||
}
|
||||
|
||||
/*===========================================================================*/
|
||||
|
|
Loading…
Reference in New Issue