mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Revision:
179:b0033dcd6934
Parent:
149:156823d33999
--- a/targets/TARGET_Silicon_Labs/TARGET_EFM32/dma_api_HAL.h	Thu Nov 23 11:57:25 2017 +0000
+++ b/targets/TARGET_Silicon_Labs/TARGET_EFM32/dma_api_HAL.h	Thu Dec 07 14:01:42 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);