From: Bdale Garbee Date: Mon, 4 Apr 2022 06:19:42 +0000 (-0600) Subject: get ram usage under control, etc X-Git-Tag: 1.9.12~1^2~17^2~20 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=243da063ef0dae656f940eb81ada55867924406f get ram usage under control, etc --- diff --git a/src/easymotor-v3/Makefile b/src/easymotor-v3/Makefile index 7f1f5bfb..b33572a8 100644 --- a/src/easymotor-v3/Makefile +++ b/src/easymotor-v3/Makefile @@ -28,7 +28,6 @@ ALTOS_SRC = \ ao_stdio.c \ ao_storage.c \ ao_report.c \ - ao_ignite.c \ ao_flight.c \ ao_kalman.c \ ao_sample.c \ @@ -39,7 +38,7 @@ ALTOS_SRC = \ ao_log_motor.c \ ao_cmd.c \ ao_config.c \ - ao_timer.c \ + ao_timer_lpc.c \ ao_exti_lpc.c \ ao_spi_lpc.c \ ao_adc_lpc.c \ diff --git a/src/easymotor-v3/ao_pins.h b/src/easymotor-v3/ao_pins.h index 48485c6c..d43b855a 100644 --- a/src/easymotor-v3/ao_pins.h +++ b/src/easymotor-v3/ao_pins.h @@ -19,6 +19,10 @@ #ifndef _AO_PINS_H_ #define _AO_PINS_H_ +#define AO_STACK_SIZE 352 +#define SLEEP_HASH_SIZE 3 +#define AO_NUM_TASKS 6 + #define HAS_TASK_QUEUE 1 #define IS_FLASH_LOADER 0 @@ -58,14 +62,11 @@ #define USE_EEPROM_CONFIG 0 #define USE_STORAGE_CONFIG 1 #define AO_PA11_PA12_RMP 1 -#define HAS_BEEP 0 +#define HAS_BEEP 1 #define HAS_BATTERY_REPORT 1 #define HAS_PAD_REPORT 1 #define BEEPER_CHANNEL 3 #define BEEPER_TIMER 2 -#define BEEPER_PORT (&stm_gpioa) -#define BEEPER_PIN 2 -#define BEEPER_AFR STM_AFR_AF2 #define HAS_RADIO 0 #define HAS_TELEMETRY 0 @@ -88,7 +89,7 @@ #define AO_ADC_0 1 #define AO_ADC_1 1 -#define AO_DATA_RING 64 +#define AO_DATA_RING 32 struct ao_adc { int16_t v_batt;