altos: Allow use of internal EEPROM for config storage
authorKeith Packard <keithp@keithp.com>
Tue, 12 Nov 2013 06:45:32 +0000 (15:45 +0900)
committerKeith Packard <keithp@keithp.com>
Tue, 12 Nov 2013 07:27:31 +0000 (16:27 +0900)
commit83437b2fe304599e22d0a98b5410808bcb67dc97
tree6da7cc9eab667847e65f26b18e58f85df55e8a4f
parentb57f1cabfe5052306cb4c28793bea477f4aeb2d2
altos: Allow use of internal EEPROM for config storage

This stops exposing eeprom as 'storage' and instead exposes it with a
separate eeprom API so that it can be used for config storage without
also using it for flight log storage.

The config code has been changed to allow it to either use storage for
configuration data or eeprom.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 files changed:
src/core/ao_config.c
src/core/ao_config.h [new file with mode: 0644]
src/core/ao_eeprom.h [new file with mode: 0644]
src/core/ao_storage.c
src/core/ao_storage.h
src/stm/ao_eeprom_stm.c
src/telegps-v0.1/Makefile
src/telegps-v0.1/ao_pins.h
src/telegps-v0.1/ao_telegps.c
src/telelco-v0.2/Makefile
src/telelco-v0.2/ao_pins.h
src/telelco-v0.2/ao_telelco.c