mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/stm32: enable flashpage feature for stm32f031k6
This commit is contained in:
parent
f722022708
commit
055c43c878
@ -10,10 +10,8 @@ FEATURES_PROVIDED += periph_uart_nonblocking
|
||||
FEATURES_PROVIDED += periph_wdt
|
||||
|
||||
ifneq (,$(filter $(CPU_FAM),f0 f1 f3 g4 l0 l1 l4 wb))
|
||||
ifeq (,$(filter nucleo-f031k6,$(BOARD)))
|
||||
FEATURES_PROVIDED += periph_flashpage
|
||||
FEATURES_PROVIDED += periph_flashpage_raw
|
||||
endif
|
||||
FEATURES_PROVIDED += periph_flashpage
|
||||
FEATURES_PROVIDED += periph_flashpage_raw
|
||||
endif
|
||||
|
||||
ifneq (,$(filter $(CPU_FAM),l0 l1))
|
||||
|
@ -136,7 +136,8 @@ extern "C" {
|
||||
#define FLASHPAGE_SIZE (2048U)
|
||||
#elif defined(CPU_LINE_STM32F051x8) || defined(CPU_LINE_STM32F042x6) \
|
||||
|| defined(CPU_LINE_STM32F070xB) || defined(CPU_LINE_STM32F030x8) \
|
||||
|| defined(CPU_LINE_STM32F030x4) || defined(CPU_LINE_STM32F103xB)
|
||||
|| defined(CPU_LINE_STM32F030x4) || defined(CPU_LINE_STM32F103xB) \
|
||||
|| defined(CPU_LINE_STM32F031x6)
|
||||
#define FLASHPAGE_SIZE (1024U)
|
||||
#elif defined(CPU_FAM_STM32L1)
|
||||
#define FLASHPAGE_SIZE (256U)
|
||||
|
Loading…
Reference in New Issue
Block a user