diff options
author | Keith Packard <keithp@keithp.com> | 2014-06-07 11:01:14 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-06-07 11:01:14 -0700 |
commit | 62aa51f0b785bea146d1e9331e6253de2d547c94 (patch) | |
tree | 5eaea375e748f98b56e4cbd5fdb6d1542109fa7d /src | |
parent | 5d973570ef2324b21a64477eecb0a292652ff467 (diff) |
altos/telemega-v1.0: Adjust config params to make flight erase work
Flight erase records are supposed to be written after the ao_config to
eeprom in telemega. They were getting written in the middle of one of
the pyro channel config blocks. Put a bunch of space between the two
by making the config max 1024 bytes instead of 128 bytes.
Set the log erase marker to 0x55 -- eeprom comes from the factory as
0x00, so we use any value other than 0x55 to indicate 'unused' erase
slots.
Save space for more flight erase blocks; we've got plenty.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/telemega-v1.0/ao_pins.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/telemega-v1.0/ao_pins.h b/src/telemega-v1.0/ao_pins.h index 7f0b1f94..77b753d1 100644 --- a/src/telemega-v1.0/ao_pins.h +++ b/src/telemega-v1.0/ao_pins.h @@ -65,6 +65,10 @@ #define ao_gps_fifo (ao_stm_usart3.rx_fifo) #define AO_CONFIG_DEFAULT_FLIGHT_LOG_MAX (1024 * 1024) +#define AO_CONFIG_MAX_SIZE 1024 +#define LOG_ERASE_MARK 0x55 +#define LOG_MAX_ERASE 128 + #define HAS_EEPROM 1 #define USE_INTERNAL_FLASH 0 #define USE_EEPROM_CONFIG 1 |