mbed library sources. Supersedes mbed-src. Fixed broken STM32F1xx RTC on rtc_api.c
Dependents: Nucleo_F103RB_RTC_battery_bkup_pwr_off_okay
Fork of mbed-dev by
Diff: targets/TARGET_STM/TARGET_STM32L4/flash_api.c
- Revision:
- 174:b96e65c34a4d
- Parent:
- 167:e84263d55307
- Child:
- 175:af195413fb11
--- a/targets/TARGET_STM/TARGET_STM32L4/flash_api.c Fri Sep 15 14:59:18 2017 +0100 +++ b/targets/TARGET_STM/TARGET_STM32L4/flash_api.c Mon Oct 02 15:33:19 2017 +0100 @@ -221,8 +221,8 @@ * @return The size of a page */ uint32_t flash_get_page_size(const flash_t *obj) { - /* considering 1 sector = 1 page */ - return FLASH_PAGE_SIZE; + /* Page size is the minimum programable size, which 8 bytes */ + return 8; } /** Get start address for the flash region