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:
		| @@ -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); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user