[gps] Conditionally set default GPS port

AeroCore uses ttyS0 not ttyS3 as the serial port connected to the GPS.
Now, a board can set GPS_DEFAULT_UART_PORT to override the default setting
in a board-specific fashion.

Signed-off-by: Ash Charles <ashcharles@gmail.com>
This commit is contained in:
Ash Charles
2014-05-13 13:47:40 -07:00
parent 3b72e31e83
commit 9db966e058
2 changed files with 4 additions and 3 deletions
@@ -73,6 +73,7 @@ __BEGIN_DECLS
/* GPS */
#define GPIO_GPS_NRESET (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_OUTPUT_SET|GPIO_PORTC|GPIO_PIN5)
#define GPIO_GPS_TIMEPULSE (GPIO_INPUT|GPIO_FLOAT|GPIO_PORTC|GPIO_PIN4)
#define GPS_DEFAULT_UART_PORT "/dev/ttyS0"
/* SPI3--Sensors */
#define PX4_SPI_BUS_SENSORS 3