Browse Source

doc: efm32: dma: enable peripheral_apis

pull/1074/head
Karl Palsson 5 years ago
parent
commit
7a058016b5
  1. 7
      lib/efm32/common/dma_common.c

7
lib/efm32/common/dma_common.c

@ -1,3 +1,6 @@
/** @addtogroup dma_file DMA peripheral API
* @ingroup peripheral_apis
*/
/* /*
* This file is part of the libopencm3 project. * This file is part of the libopencm3 project.
* *
@ -19,6 +22,8 @@
#include <libopencm3/efm32/dma.h> #include <libopencm3/efm32/dma.h>
/**@{*/
#define CHANNEL_SUPPORT_LOOP(ch) (((ch) == DMA_CH0) || ((ch) == DMA_CH1)) #define CHANNEL_SUPPORT_LOOP(ch) (((ch) == DMA_CH0) || ((ch) == DMA_CH1))
/** /**
@ -618,3 +623,5 @@ void dma_desc_set_mode(uint32_t desc_base, enum dma_ch ch, enum dma_mode mode)
cfg |= DMA_DESC_CH_CFG_CYCLE_CTRL(mode); cfg |= DMA_DESC_CH_CFG_CYCLE_CTRL(mode);
DMA_DESC_CHx_CFG(desc_base, ch) = cfg; DMA_DESC_CHx_CFG(desc_base, ch) = cfg;
} }
/**@}*/
Loading…
Cancel
Save