The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: TARGET_EFM32HG_STK3400/TARGET_Silicon_Labs/TARGET_EFM32/dma_api_HAL.h
- Revision:
- 160:5571c4ff569f
- Parent:
- 156:ff21514d8981
--- a/TARGET_EFM32HG_STK3400/TARGET_Silicon_Labs/TARGET_EFM32/dma_api_HAL.h Thu Nov 23 11:44:04 2017 +0000 +++ b/TARGET_EFM32HG_STK3400/TARGET_Silicon_Labs/TARGET_EFM32/dma_api_HAL.h Wed Jan 17 16:13:02 2018 +0000 @@ -45,6 +45,7 @@ #define DMA_CAP_2DCOPY (1 << 0) #define DMA_CAP_NONE (0 << 0) +#ifdef DMA_PRESENT #if ( DMA_CHAN_COUNT <= 4 ) #define DMACTRL_CH_CNT 4 #define DMACTRL_ALIGNMENT 256 @@ -60,6 +61,7 @@ #else #error "Unsupported DMA channel count (dma_api.c)." #endif +#endif #ifdef LDMA_PRESENT typedef void (*LDMAx_CBFunc_t)(unsigned int channel, bool primary, void *user);