X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Ftelelco-v3.0%2Fao_pins.h;h=21d90328e644b59d47687cfc837e8241808aa1e4;hb=470be148d9a9dcd45609942d17fcf7c1555375f3;hp=a68793cda10ea953d85f96a58e7682c791cd38d4;hpb=6d3b9ca44ffe43bd6285c37af4ee1d6174be8fcd;p=fw%2Faltos diff --git a/src/telelco-v3.0/ao_pins.h b/src/telelco-v3.0/ao_pins.h index a68793cd..21d90328 100644 --- a/src/telelco-v3.0/ao_pins.h +++ b/src/telelco-v3.0/ao_pins.h @@ -61,14 +61,20 @@ #define BEEPER_CHANNEL 1 #define BEEPER_PORT (&stm_gpioc) #define BEEPER_PIN 6 +#define AO_BEEP_MID_DEFAULT 179 /* 2100 Hz */ #define HAS_RADIO 1 #define HAS_RADIO_RATE 1 #define HAS_TELEMETRY 0 #define HAS_AES 1 #define HAS_STATIC_TEST 0 +#define HAS_USB_PULLUP 1 +#define AO_USB_PULLUP_PORT (&stm_gpioa) +#define AO_USB_PULLUP_PIN 10 + #define HAS_SPI_1 1 /* NHD-C12864LZ LCD Module */ #define SPI_1_PA5_PA6_PA7 1 +#define SPI_1_PA6_DISABLE 1 #define SPI_1_MODE_OUTPUT STM_GPIO_CR_MODE_OUTPUT_10MHZ #define SPI_1_PB3_PB4_PB5 0 #define SPI_1_PE13_PE14_PE15 0 @@ -89,6 +95,7 @@ #define PACKET_HAS_SLAVE 0 #define PACKET_HAS_MASTER 0 +#define AO_FAST_TIMER 2 #define FAST_TIMER_FREQ 10000 /* .1ms for debouncing */ /* LCD module */ @@ -98,7 +105,7 @@ #define AO_ST7565_RESET_PIN 5 #define AO_ST7565_A0_PORT (&stm_gpioa) /* pin 3 */ #define AO_ST7565_A0_PIN 3 -#define AO_ST7565_SPI_BUS AO_SPI_1_PA5_PA6_PA7 +#define AO_ST7565_SPI_BUS (AO_SPI_1_PA5_PA6_PA7 | AO_SPI_MODE_3) #define AO_ST7565_WIDTH 128 #define AO_ST7565_HEIGHT 64 #define AO_ST7565_BIAS ST7565_LCD_BIAS_1_9 @@ -136,9 +143,9 @@ #define LED_2_PORT (&stm_gpioc) #define LED_2_PIN 9 -#define AO_LED_BOX AO_LED_3 /* PA10 */ +#define AO_LED_BOX AO_LED_3 /* PA9 */ #define LED_3_PORT (&stm_gpioa) -#define LED_3_PIN 10 +#define LED_3_PIN 9 #define AO_LED_PAD AO_LED_4 /* PA15 */ #define LED_4_PORT (&stm_gpioa) @@ -208,7 +215,7 @@ #define AO_QUADRATURE_0_A 12 #define AO_QUADRATURE_0_B 11 -#define AO_QUADRATURE_SELECT 10 +#define AO_QUADRATURE_SELECT 0 /* * Buttons @@ -266,7 +273,7 @@ struct ao_adc { #define HAS_ADC_TEMP 0 #define HAS_BATTERY_REPORT 1 -#define AO_ADC_V_BATT 0 +#define AO_ADC_V_BATT 2 #define AO_ADC_V_BATT_PORT (&stm_gpioa) #define AO_ADC_V_BATT_PIN 2