mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Revision:
168:9672193075cf
Parent:
167:e84263d55307
Child:
174:b96e65c34a4d
--- a/targets/TARGET_STM/TARGET_STM32L0/flash_api.c	Wed Jun 21 17:46:44 2017 +0100
+++ b/targets/TARGET_STM/TARGET_STM32L0/flash_api.c	Thu Jul 06 15:42:05 2017 +0100
@@ -119,16 +119,15 @@
 }
 
 uint32_t flash_get_sector_size(const flash_t *obj, uint32_t address) {
-    /*  considering 1 sector = 1 page */
     if ((address >= (FLASH_BASE + FLASH_SIZE)) || (address < FLASH_BASE)) {
         return MBED_FLASH_INVALID_SIZE;
     } else {
+        /*  sector composed of N pages */
         return (NUM_PAGES_IN_SECTOR * FLASH_PAGE_SIZE);
     }
 }
 
 uint32_t flash_get_page_size(const flash_t *obj) {
-    /*  considering 1 sector = 1 page */
     return FLASH_PAGE_SIZE;
 }