Skip to content

Draft - Dma Handlers in Arduino core #825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft
Prev Previous commit
Next Next commit
Minor updates.
  • Loading branch information
xC0000005 committed Mar 26, 2020
commit 2d97333d0fc7ae3599c49a7109c2098c8c67292d
11 changes: 11 additions & 0 deletions cores/arduino/stm32/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
#include <stddef.h>
#include "dma.h"

#ifdef __cplusplus
extern "C" {
#endif
#if defined(HAL_DMA_MODULE_ENABLED)

#define NC -1

typedef enum
Expand Down Expand Up @@ -368,3 +373,9 @@ void DMA2_Channel8_IRQHandler() {
HAL_DMA_IRQHandler(dma_handles[DMA2_CHANNEL8_INDEX]);
}
#endif

#endif /* HAL_DMA_MODULE_ENABLED */

#ifdef __cplusplus
}
#endif