X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Ftelelco-v3.0%2Fao_pins.h;h=8ff1c7bead53cc9bacfd1f44cb6ac1b83cc58a30;hb=54a465d062d9a863f14519267f06927d001e2c23;hp=6402ed4965096ce0ab851d12402aed49e7a6e7e2;hpb=8c5c7dfe66098bc8af47768146739a7cda605968;p=fw%2Faltos diff --git a/src/telelco-v3.0/ao_pins.h b/src/telelco-v3.0/ao_pins.h index 6402ed49..8ff1c7be 100644 --- a/src/telelco-v3.0/ao_pins.h +++ b/src/telelco-v3.0/ao_pins.h @@ -67,8 +67,13 @@ #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 +94,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 */ @@ -136,9 +142,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) @@ -266,7 +272,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 @@ -288,4 +294,6 @@ struct ao_adc { */ #define AO_ADC_REFERENCE_DV 33 +#define AO_LCO_SEARCH_API + #endif /* _AO_PINS_H_ */