X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Ftelemini-v3.0%2Fao_pins.h;h=7249ece7269827a4d54601b4743c9e42b7f0701b;hb=3c3f5e316c0c2464568db883d50881f5b898abac;hp=031c1d18bf692e4216819a5d547560d3571c41a9;hpb=c75736c9cd8f869c257a3024efda843cf0edf2a3;p=fw%2Faltos diff --git a/src/telemini-v3.0/ao_pins.h b/src/telemini-v3.0/ao_pins.h index 031c1d18..7249ece7 100644 --- a/src/telemini-v3.0/ao_pins.h +++ b/src/telemini-v3.0/ao_pins.h @@ -48,7 +48,8 @@ #define PACKET_HAS_SLAVE 1 -#define AO_LOG_FORMAT AO_LOG_FORMAT_EASYMINI +#define AO_LOG_FORMAT AO_LOG_FORMAT_TELEMINI3 +#define AO_CONFIG_DEFAULT_FLIGHT_LOG_MAX ((uint32_t) 112 * (uint32_t) 1024) #define HAS_BOOT_RADIO 0 @@ -59,6 +60,7 @@ #define HAS_FLIGHT 1 #define HAS_EEPROM 1 #define HAS_TELEMETRY 1 +#define AO_SEND_MINI AO_TELEMETRY_MINI3 #define HAS_APRS 0 #define HAS_LOG 1 #define USE_INTERNAL_FLASH 0 @@ -67,6 +69,9 @@ /* Beeper is on Tim1 CH3 */ #define BEEPER_CHANNEL 3 +#define BEEPER_TIMER 1 +#define BEEPER_PORT (&stm_gpioa) +#define BEEPER_PIN 10 /* LED */ #define LED_PORT_ENABLE STM_RCC_AHBENR_IOPAEN @@ -141,13 +146,13 @@ #define HAS_ADC 1 -#define AO_ADC_PIN0_PORT (&stm_gpioa) +#define AO_ADC_PIN0_PORT (&stm_gpioa) /* sense_m */ #define AO_ADC_PIN0_PIN 0 #define AO_ADC_PIN0_CH 0 -#define AO_ADC_PIN1_PORT (&stm_gpioa) +#define AO_ADC_PIN1_PORT (&stm_gpioa) /* sense_a */ #define AO_ADC_PIN1_PIN 1 #define AO_ADC_PIN1_CH 1 -#define AO_ADC_PIN2_PORT (&stm_gpioa) +#define AO_ADC_PIN2_PORT (&stm_gpioa) /* v_batt */ #define AO_ADC_PIN2_PIN 2 #define AO_ADC_PIN2_CH 2 @@ -156,8 +161,8 @@ #define AO_NUM_ADC 3 struct ao_adc { - int16_t sense_a; int16_t sense_m; + int16_t sense_a; int16_t v_batt; };