File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535#include < Arduino.h>
3636#include " DMA.h"
3737
38- static interrupt_cb_t event_handler = NULL ;
38+ static voidFuncPtr event_handler = NULL ;
3939event_t event;
4040
4141void DMA::beginDMA (XMC_DMA_t *const dma) {
@@ -217,7 +217,7 @@ void DMA::configDMA_P2P(XMC_DMA_t *const dma,
217217
218218void DMA::attachDMAInterrupt (XMC_DMA_t *const dma,
219219 uint8_t channel,
220- interrupt_cb_t _event_handler,
220+ voidFuncPtr _event_handler,
221221 event_t _event) {
222222 event = _event;
223223 XMC_DMA_CH_EnableEvent (dma, channel, event);
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ class DMA {
156156 // Interrupt configuration
157157 void attachDMAInterrupt (XMC_DMA_t *const dma,
158158 uint8_t channel,
159- interrupt_cb_t _event_handler,
159+ voidFuncPtr _event_handler,
160160 event_t event);
161161 void detachDMAInterrupt (XMC_DMA_t *const dma, uint8_t channel, XMC_DMA_CH_EVENT_t event);
162162
You can’t perform that action at this time.
0 commit comments