Skip to content

Commit

Permalink
fixup! cpu/stm32l1/include: add flashpage defines
Browse files Browse the repository at this point in the history
  • Loading branch information
kYc0o committed Feb 9, 2018
1 parent 5ee33ee commit a4eb2a6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions cpu/stm32l1/include/cpu_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,17 @@ extern "C" {
/** @} */

/**
* @brief Flash page configuration
* @name Flash page configuration
* @{
*/
#if defined(CPU_MODEL_STM32L152RE)
#if defined(CPU_MODEL_STM32L152RE) || defined(CPU_MODEL_STM32L151RC)
#define FLASHPAGE_SIZE (256U)
#define FLASHPAGE_NUMOF (2048U)
#if defined(CPU_MODEL_STM32L152RE)
#define FLASHPAGE_NUMOF (2048U) /* 512KB */
#endif
#if defined(CPU_MODEL_STM32L151RC)
#define FLASHPAGE_NUMOF (1024U) /* 256KB */
#endif
#endif
/* The minimum block size which can be written is 4B. However, the erase
* block is always FLASHPAGE_SIZE.
Expand Down

0 comments on commit a4eb2a6

Please sign in to comment.