drivers: flash: Add the flash driver of the stm32f1x family
Most of the code is copied from the stm32f0x family Tested on stm32f103ze soc Signed-off-by: Feng Cheng <i@fengch.me>
This commit is contained in:
parent
5c28f39e7f
commit
ee57c8e749
14 changed files with 255 additions and 24 deletions
|
@ -225,7 +225,6 @@
|
|||
#define DT_ADC_1_CLOCK_BITS DT_ST_STM32_ADC_40012400_CLOCK_BITS_0
|
||||
#define DT_ADC_1_CLOCK_BUS DT_ST_STM32_ADC_40012400_CLOCK_BUS_0
|
||||
|
||||
|
||||
#define DT_CAN_1_BASE_ADDRESS DT_ST_STM32_CAN_40006400_BASE_ADDRESS
|
||||
#define DT_CAN_1_BUS_SPEED DT_ST_STM32_CAN_40006400_BUS_SPEED
|
||||
#define DT_CAN_1_NAME DT_ST_STM32_CAN_40006400_LABEL
|
||||
|
@ -241,4 +240,7 @@
|
|||
#define DT_CAN_1_CLOCK_BUS DT_ST_STM32_CAN_40006400_CLOCK_BUS
|
||||
#define DT_CAN_1_CLOCK_BITS DT_ST_STM32_CAN_40006400_CLOCK_BITS
|
||||
|
||||
#define DT_FLASH_DEV_BASE_ADDRESS DT_ST_STM32F1_FLASH_CONTROLLER_40022000_BASE_ADDRESS
|
||||
#define DT_FLASH_DEV_NAME DT_ST_STM32F1_FLASH_CONTROLLER_40022000_LABEL
|
||||
|
||||
/* End of SoC Level DTS fixup file */
|
||||
|
|
|
@ -36,7 +36,7 @@ union __ef_acr {
|
|||
};
|
||||
|
||||
/* 3.3.3 Embedded flash registers */
|
||||
struct stm32f10x_flash {
|
||||
struct stm32f1x_flash {
|
||||
volatile union __ef_acr acr;
|
||||
volatile u32_t keyr;
|
||||
volatile u32_t optkeyr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue