]> git.donarmstrong.com Git - qmk_firmware.git/commit
STM32 EEPROM Emulation (#3741)
authoryiancar <yiangosyiangou@cytanet.com.cy>
Wed, 29 Aug 2018 20:14:49 +0000 (23:14 +0300)
committerJack Humbert <jack.humb@gmail.com>
Wed, 29 Aug 2018 20:14:49 +0000 (16:14 -0400)
commit621ce29a53e9e94e085fbd86c0b7134e9df4bfe5
tree82c7d8258c4169284f7572500f9b292c7ee4634d
parent30680c6eb396a2bb06928afd69edae9908ac84fb
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
tmk_core/common.mk
tmk_core/common/chibios/eeprom.c [deleted file]
tmk_core/common/chibios/eeprom_stm32.c [new file with mode: 0755]
tmk_core/common/chibios/eeprom_stm32.h [new file with mode: 0755]
tmk_core/common/chibios/eeprom_teensy.c [new file with mode: 0644]
tmk_core/common/chibios/flash_stm32.c [new file with mode: 0755]
tmk_core/common/chibios/flash_stm32.h [new file with mode: 0755]
tmk_core/common/eeconfig.c
tmk_core/common/eeconfig.h
tmk_core/protocol/chibios/main.c