altos/telegps-v2.0: Enable USB connect monitoring
authorKeith Packard <keithp@keithp.com>
Mon, 18 Sep 2017 21:40:37 +0000 (14:40 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 18 Sep 2017 22:05:02 +0000 (15:05 -0700)
Disable radios when plugged in to USB to save power and avoid being
noisy.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/telegps-v2.0/ao_pins.h

index 49f51a9c30c570d0fb194ecb72bc121e5671f495..fa175371b28f8835f462b9cb04ac17abf9bb3e07 100644 (file)
@@ -50,6 +50,9 @@
 #define HAS_USB                         1
 #define AO_USB_DIRECTIO                 0
 #define AO_PA11_PA12_RMP                1
+#define HAS_USB_CONNECT                        1
+#define AO_USB_CONNECT_PORT            (&stm_gpiob)
+#define AO_USB_CONNECT_PIN             3
 
 #define IS_FLASH_LOADER 0