X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fmetro-m0%2Fao_pins.h;h=0f276c1f2f343bbf9933a88cfd3495676305e460;hb=a080a564b9b54e6b3495d30703c45ba2850b1703;hp=2d404cadffd922de9a1f2e9c2d11b420415d3c9f;hpb=9c556954d25daa6fda6771ca6d011d76b5d17524;p=fw%2Faltos diff --git a/src/metro-m0/ao_pins.h b/src/metro-m0/ao_pins.h index 2d404cad..0f276c1f 100644 --- a/src/metro-m0/ao_pins.h +++ b/src/metro-m0/ao_pins.h @@ -118,4 +118,18 @@ struct ao_adc { #define AO_ADC_SQ6 SAMD21_ADC_INPUTCTRL_MUXPOS_TEMP +/* GPS */ +#define HAS_GPS 1 + +#define AO_SERIAL_SPEED_UBLOX AO_SERIAL_SPEED_9600 + +#define HAS_SERIAL_0 1 +#define USE_SERIAL_0_STDIN 0 +#define SERIAL_0_PA08_PA09 1 + +#define ao_gps_getchar ao_serial0_getchar +#define ao_gps_putchar ao_serial0_putchar +#define ao_gps_set_speed ao_serial0_set_speed +#define ao_gps_fifo (ao_samd21_usart0.rx_fifo) + #endif /* _AO_PINS_H_ */