boards: remove GPS_DEFAULT_UART_PORT

Not required anymore.
This commit is contained in:
Beat Küng
2018-09-25 07:53:29 +02:00
parent 98ac557ebc
commit 546886259f
8 changed files with 1 additions and 24 deletions
@@ -62,9 +62,6 @@
#define BOARD_HAS_CONTROL_STATUS_LEDS 1
/* GPS */
#define GPS_DEFAULT_UART_PORT "/dev/ttyS0"
/* Power muxes */
/* LOW=battery HIGH=USB */
#define GPIO_POWER_MUX_SENSE (GPIO_INPUT|GPIO_PULLUP|GPIO_PORTC|GPIO_PIN5)
@@ -116,11 +116,6 @@
* USB OTG FS
*/
/*
* GPS
*/
#define GPS_DEFAULT_UART_PORT "/dev/ttyS5"
/*
* RC Serial port
*/
@@ -321,8 +321,6 @@
#define BOARD_HAS_RX_TX_SWAP 1 /* HW Can swap TX and RX */
#define RC_SERIAL_PORT_IS_SWAPED 0 /* Board wired with RC's TX is on cpu RX */
#define GPS_DEFAULT_UART_PORT "/dev/ttyS6" /* UART7 */
/* Power switch controls ******************************************************/
#define SDIO_SLOTNO 0 /* Only one slot */
@@ -88,8 +88,6 @@ __BEGIN_DECLS
* UART4 /dev/tty4 --- P10 UART (Bluetooth)
*/
#define GPS_DEFAULT_UART_PORT "/dev/ttyS3" /* UART2 */
/* High-resolution timer */
#define HRT_TIMER 1 /* TPM1 timer for the HRT */
#define HRT_TIMER_CHANNEL 0 /* Use capture/compare channel 0 */
@@ -59,11 +59,6 @@
#define GPIO_LED1 (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|GPIO_OUTPUT_CLEAR|GPIO_PORTB|GPIO_PIN5)
#define GPIO_LED_BLUE GPIO_LED1
/* GPS
* UART6
*/
#define GPS_DEFAULT_UART_PORT "/dev/ttyS2"
/*
* ADC channels
*
@@ -528,8 +528,6 @@
#define BOARD_HAS_RX_TX_SWAP 1 /* HW Can swap TX and RX */
#define RC_SERIAL_PORT_IS_SWAPED 0 /* Board wired with RC's TX is on cpu RX */
#define GPS_DEFAULT_UART_PORT "/dev/ttyS0" /* UART1 on FMUv5 */
/* Input Capture Channels. */
#define INPUT_CAP1_TIMER 2
#define INPUT_CAP1_CHANNEL /* T4C1 */ 1
-4
View File
@@ -47,10 +47,6 @@
#include "drv_sensor.h"
#include "drv_orb_dev.h"
#ifndef GPS_DEFAULT_UART_PORT
#define GPS_DEFAULT_UART_PORT "/dev/ttyS3"
#endif
typedef enum {
GPS_DRIVER_MODE_NONE = 0,
GPS_DRIVER_MODE_UBX,
+1 -1
View File
@@ -1004,7 +1004,7 @@ GPS *GPS::instantiate(int argc, char *argv[])
GPS *GPS::instantiate(int argc, char *argv[], Instance instance)
{
const char *device_name = GPS_DEFAULT_UART_PORT;
const char *device_name = "/dev/ttyS3";
const char *device_name_secondary = nullptr;
bool fake_gps = false;
bool enable_sat_info = false;