MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / spi_dma_disable

Function spi_dma_disable

src/SBC/DataTransfer.cpp:109–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107volatile unsigned int spiTxUnderruns = 0, spiRxOverruns = 0;
108
109static void spi_dma_disable() noexcept
110{
111#if USE_DMAC
112 dmac_channel_disable(DMAC, DmacChanSbcRx);
113 dmac_channel_disable(DMAC, DmacChanSbcTx);
114#endif
115
116#if USE_XDMAC
117 xdmac_channel_disable(XDMAC, DmacChanSbcRx);
118 xdmac_channel_disable(XDMAC, DmacChanSbcTx);
119#endif
120
121#if USE_DMAC_MANAGER
122 DmacManager::DisableChannel(DmacChanSbcRx);
123 DmacManager::DisableChannel(DmacChanSbcTx);
124#endif
125}
126
127#if !SAME5x
128static bool spi_dma_check_rx_complete() noexcept

Callers 3

DataTransfer.cppFile · 0.70
disable_spiFunction · 0.70
InitMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected