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_EFM32PG12_STK3402/TARGET_Silicon_Labs/TARGET_EFM32/dma_api_HAL.h
- Revision:
- 159:7130f322cb7e
- Parent:
- 139:856d2700e60b
--- a/TARGET_EFM32PG12_STK3402/TARGET_Silicon_Labs/TARGET_EFM32/dma_api_HAL.h Thu Nov 23 11:44:04 2017 +0000 +++ b/TARGET_EFM32PG12_STK3402/TARGET_Silicon_Labs/TARGET_EFM32/dma_api_HAL.h Thu Dec 21 18:20:02 2017 +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);