Skip to content

Commit 1b4da44

Browse files
committed
Minor updates.
1 parent 9adfb6a commit 1b4da44

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cores/arduino/stm32/dma.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
#include <stddef.h>
3939
#include "dma.h"
4040

41+
#ifdef __cplusplus
42+
extern "C" {
43+
#endif
44+
#if defined(HAL_DMA_MODULE_ENABLED)
45+
4146
#define NC -1
4247

4348
typedef enum
@@ -368,3 +373,9 @@ void DMA2_Channel8_IRQHandler() {
368373
HAL_DMA_IRQHandler(dma_handles[DMA2_CHANNEL8_INDEX]);
369374
}
370375
#endif
376+
377+
#endif /* HAL_DMA_MODULE_ENABLED */
378+
379+
#ifdef __cplusplus
380+
}
381+
#endif

0 commit comments

Comments
 (0)