1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 10:12:45 +01:00

cpu/stm32l1: Add support for stm32l151cb CPU

This commit is contained in:
Leandro Lanzieri 2018-09-18 18:05:34 +02:00
parent 334f828599
commit bd1b309c39
2 changed files with 9 additions and 4 deletions

View File

@ -46,7 +46,7 @@
* * STM32L1XX_XL: Ultra Low Power XL-density devices: STM32L151xExx,
* STM32L152xExx and STM32L162xExx
*/
#if defined(CPU_MODEL_STM32L151RBA)
#if defined(CPU_MODEL_STM32L151RBA) || defined(CPU_MODEL_STM32L151CB)
#define STM32L1XX_MD (1U)
#elif defined(CPU_MODEL_STM32L151RC)
#define STM32L1XX_MDP (1U)
@ -64,7 +64,7 @@ extern "C" {
* @{
*/
#define CPU_DEFAULT_IRQ_PRIO (1U)
#if defined(CPU_MODEL_STM32L151RBA)
#if defined(CPU_MODEL_STM32L151RBA) || defined(CPU_MODEL_STM32L151CB)
#define CPU_IRQ_NUMOF (45U)
#else
#define CPU_IRQ_NUMOF (57U)
@ -76,7 +76,7 @@ extern "C" {
* @name Flash page configuration
* @{
*/
#if defined(CPU_MODEL_STM32L152RE) || defined(CPU_MODEL_STM32L151RC)
#if defined(CPU_MODEL_STM32L152RE) || defined(CPU_MODEL_STM32L151RC) || defined(CPU_MODEL_STM32L151CB)
#define FLASHPAGE_SIZE (256U)
#if defined(CPU_MODEL_STM32L152RE)
#define FLASHPAGE_NUMOF (2048U) /* 512KB */
@ -84,6 +84,9 @@ extern "C" {
#if defined(CPU_MODEL_STM32L151RC)
#define FLASHPAGE_NUMOF (1024U) /* 256KB */
#endif
#if defined(CPU_MODEL_STM32L151CB)
#define FLASHPAGE_NUMOF (512U) /* 128KB */
#endif
#endif
/* The minimum block size which can be written is 4B. However, the erase
* block is always FLASHPAGE_SIZE.

View File

@ -30,7 +30,7 @@ extern "C" {
/**
* @name Starting address of the CPU ID
*/
#ifdef CPU_MODEL_STM32L151RBA
#if defined(CPU_MODEL_STM32L151RBA) || defined(CPU_MODEL_STM32L151CB)
#define CPUID_ADDR (0x1ff80050)
#else
#define CPUID_ADDR (0x1ff800d0)
@ -82,6 +82,8 @@ typedef enum {
#define EEPROM_SIZE (16384UL) /* 16kB */
#elif defined(CPU_MODEL_STM32L151RC)
#define EEPROM_SIZE (8192U) /* 8kB */
#elif defined(CPU_MODEL_STM32L151CB)
#define EEPROM_SIZE (4096U) /* 4kB */
#endif
/** @} */