altos/stm32f1: Add eeprom emulation using flash
authorKeith Packard <keithp@keithp.com>
Mon, 8 Jan 2024 00:47:47 +0000 (16:47 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 1 Feb 2024 01:50:19 +0000 (17:50 -0800)
commite959061fa17e15dfdd75d35c6c67e68a0e5e98e2
tree496b7d4a987f1c5c63286c7b573c1891f0aabc77
parent31756e065828ca5c1779f1349c38d29196f4798d
altos/stm32f1: Add eeprom emulation using flash

Use the last 2kB of flash to emulate eeprom storage for TeleLCO. This should
also be useful for EasyMega.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm32f1/altos.ld
src/stm32f1/ao_eeprom.c [new file with mode: 0644]
src/stm32f1/ao_flash.h
src/stm32f1/ao_flash_stm.c