get ram usage under control, etc
authorBdale Garbee <bdale@gag.com>
Mon, 4 Apr 2022 06:19:42 +0000 (00:19 -0600)
committerKeith Packard <keithp@keithp.com>
Mon, 4 Apr 2022 21:41:15 +0000 (14:41 -0700)
src/easymotor-v3/Makefile
src/easymotor-v3/ao_pins.h

index 7f1f5bfbe1b3f7bd3170631fb6b6ae69511247ff..b33572a8fbe070f80d539a21f66b47a3f24e92a3 100644 (file)
@@ -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 \
index 48485c6cbdf2f53aacb7795b51c7acdd2351263a..d43b855a195b23b6cc7ee5c02d3a5ecce63790ae 100644 (file)
 #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
 
 #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;