Skip to content

Commit 8891ec2

Browse files
committed
libraries/DMA/: Update interrupt_cb_t to voidFuncPtr.
Signed-off-by: zhanglinjing <Linjing.Zhang@infineon.com>
1 parent 8a34e21 commit 8891ec2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

libraries/DMA/src/DMA.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include <Arduino.h>
3636
#include "DMA.h"
3737

38-
static interrupt_cb_t event_handler = NULL;
38+
static voidFuncPtr event_handler = NULL;
3939
event_t event;
4040

4141
void DMA::beginDMA(XMC_DMA_t *const dma) {
@@ -217,7 +217,7 @@ void DMA::configDMA_P2P(XMC_DMA_t *const dma,
217217

218218
void 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);

libraries/DMA/src/DMA.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)