Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: STM32F103C8T6_WIFI_Heating_system
Fork of eeprom_flash by
eeprom_flash.h
00001 #ifndef __EEPROM_FLASH_H 00002 #define __EEPROM_FLASH_H 00003 00004 #include "mbed.h" 00005 00006 //#define EEPROM_START_ADDRESS ((uint32_t)0x08019000) // EEPROM emulation start address: after 100KByte of used Flash memory 00007 //#define EEPROM_START_ADDRESS ((uint32_t)0x0801C000) // EEPROM emulation start address: after 112KByte of used Flash memory 00008 //#define EEPROM_START_ADDRESS ((uint32_t)0x0800F800) // EEPROM emulation start address: after 63KByte of used Flash memory 00009 #define EEPROM_START_ADDRESS ((uint32_t)0x0800FC00) // EEPROM emulation start address: after 62KByte of used Flash memory 00010 00011 00012 void enableEEPROMWriting(); // Unlock and keep PER cleared 00013 void disableEEPROMWriting(); // Lock 00014 00015 // Write functions 00016 HAL_StatusTypeDef writeEEPROMHalfWord(uint32_t address, uint16_t data); 00017 HAL_StatusTypeDef writeEEPROMWord(uint32_t address, uint32_t data); 00018 00019 // Read functions 00020 uint16_t readEEPROMHalfWord(uint32_t address); 00021 uint32_t readEEPROMWord(uint32_t address); 00022 00023 #endif
Generated on Sat Jul 16 2022 13:11:56 by
1.7.2
