1
0
Fork 0

STM32 EEPROM Emulation (#3741)

* STM32 EEPROM Emulation

- Added EEPROM emulation libaries from libmaple and Arduino_STM32. https://github.com/rogerclarkmelbourne/Arduino_STM32 and https://github.com/leaflabs/libmaple.
- Renamed teensy EEPROM library and added conditional selection of library.
- Remapped EEPROM memory map for 16 byte blocks (as is with STM32f3xx MCUs).
- Added EEPROM initialization in main.c of Chibios.
- Added EEPROM format to clear the emulated pages when EEPROM is marked as invalid.

* Fixed ifdef
This commit is contained in:
yiancar 2018-08-29 23:14:49 +03:00 committed by Jack Humbert
parent 30680c6eb3
commit 621ce29a53
9 changed files with 1035 additions and 1 deletions

View file

@ -44,6 +44,9 @@
#ifdef MIDI_ENABLE
#include "qmk_midi.h"
#endif
#ifdef STM32F303xC
#include "eeprom_stm32.h"
#endif
#include "suspend.h"
#include "wait.h"
@ -109,6 +112,10 @@ int main(void) {
halInit();
chSysInit();
#ifdef STM32F303xC
EEPROM_init();
#endif
// TESTING
// chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);