Skip to content

Commit

Permalink
stm32l1/vendor: update vendor files to v2.3.0
Browse files Browse the repository at this point in the history
- Update periph/dma according to new macro definitions for
  stm32l1xxx boards
  • Loading branch information
fjmolinas committed May 6, 2019
1 parent cd0ab4a commit 13706bf
Show file tree
Hide file tree
Showing 5 changed files with 26,478 additions and 33 deletions.
6 changes: 0 additions & 6 deletions cpu/stm32_common/periph/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,7 @@
#define MEM_ADDR CMAR
#define NDTR_REG CNDTR
#define CONTROL_REG CCR
#if CPU_FAM_STM32L1
#define DMA_CCR_TCIE DMA_CCR1_TCIE
#define DMA_CCR_TEIE DMA_CCR1_TEIE
#define DMA_EN DMA_CCR1_EN
#else /* CPU_FAM_STM32L1 */
#define DMA_EN DMA_CCR_EN
#endif /* CPU_FAM_STM32L1 */
#define DMA_STREAM_IT_MASK (DMA_IFCR_CGIF1 | DMA_IFCR_CTCIF1 | \
DMA_IFCR_CHTIF1 | DMA_IFCR_CTEIF1)
#ifndef DMA_CCR_MSIZE_Pos
Expand Down
31 changes: 4 additions & 27 deletions cpu/stm32l1/include/cpu_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,37 +23,14 @@

#include "cpu_conf_common.h"

/**
* @brief STM32 L1 cpu type
*
* From CMSIS header file, allowed values for L1 cpu types are:
* * STM32L1XX_MD:
* * Ultra Low Power Medium-density devices: STM32L151x6xx, STM32L151x8xx,
* STM32L151xBxx, STM32L152x6xx, STM32L152x8xx, STM32L152xBxx,
* STM32L151x6xxA, STM32L151x8xxA, STM32L151xBxxA, STM32L152x6xxA,
* SM32L152x8xxA and STM32L152xBxxA.
* * Ultra Low Power Medium-density Value Line devices: STM32L100x6xx,
* STM32L100x8xx and STM32L100xBxx.
*
* * STM32L1XX_MDP:
* * Ultra Low Power Medium-density Plus devices: STM32L151xCxx,
* STM32L152xCxx and STM32L162xCxx
* * Ultra Low Power Medium-density Plus Value Line devices: STM32L100xCxx
*
* * STM32L1XX_HD: Ultra Low Power High-density devices: STM32L151xDxx,
* STM32L152xDxx and STM32L162xDxx
*
* * STM32L1XX_XL: Ultra Low Power XL-density devices: STM32L151xExx,
* STM32L152xExx and STM32L162xExx
*/
#if defined(CPU_MODEL_STM32L151RBA) || defined(CPU_MODEL_STM32L151CB)
#define STM32L1XX_MD (1U)
#include "vendor/stm32l151xb.h"
#elif defined(CPU_MODEL_STM32L151RC)
#define STM32L1XX_MDP (1U)
#else
#define STM32L1XX_XL (1U)
#include "vendor/stm32l151xc.h"
#elif defined(CPU_MODEL_STM32L152RE)
#include "vendor/stm32l152xe.h"
#endif
#include "vendor/stm32l1xx.h"

#ifdef __cplusplus
extern "C" {
Expand Down
Loading

0 comments on commit 13706bf

Please sign in to comment.