altos: Place rom config variables in fixed location
authorKeith Packard <keithp@keithp.com>
Tue, 24 Aug 2010 05:03:36 +0000 (22:03 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 24 Aug 2010 05:03:36 +0000 (22:03 -0700)
commit56b906f535ac2f86bcab71addbbcd376d74f6a73
tree09b5f0aea253752da6ea87df0fabf335c11aa31a
parent4c0c099716197ef7539be0cf55bbb164f6804958
altos: Place rom config variables in fixed location

The device serial number and radio calibration values are stored in
flash, mostly so that TeleDongle gets them saved.

Placing them in well-known locations (starting at 0xa0) makes it
possible to find the previous configuration and to re-write it
easily, without requiring the .map file.

altosui doesn't have the .map file parsing code, so it relies upon
this new technique. As a benefit, it reads the old values from the
device before reprogramming it.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/Makefile.proto
src/ao.h
src/ao_config.c
src/ao_product.c
src/ao_romconfig.c [new file with mode: 0644]