mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
[arch/linux][boards] define UART devices in board files
This commit is contained in:
@@ -36,10 +36,6 @@ GPS_BAUD ?= B57600
|
||||
# The datalink default uses UDP
|
||||
MODEM_HOST ?= 192.168.1.255
|
||||
|
||||
# Here we define what the UART1_DEV device mapping
|
||||
$(TARGET).CFLAGS += -DUART1_DEV=\"/dev/ttyUSB0\"
|
||||
#$(TARGET).CFLAGS += -DUART0_DEV=\"/dev/ttyO3\"
|
||||
|
||||
# for distinction between RAW and SDK version
|
||||
$(TARGET).CFLAGS +=-DARDRONE2_RAW
|
||||
|
||||
|
||||
@@ -36,9 +36,6 @@ GPS_BAUD ?= B57600
|
||||
# The datalink default uses UDP
|
||||
MODEM_HOST ?= 192.168.1.255
|
||||
|
||||
# Here we define what the UART1_DEV device mapping
|
||||
$(TARGET).CFLAGS += -DUART1_DEV=\"/dev/ttyUSB0\"
|
||||
|
||||
# for distinction between SDK and RAW version
|
||||
ap.CFLAGS +=-DARDRONE2_SDK
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@ MODEM_HOST ?= 192.168.1.255
|
||||
#
|
||||
MODEM_PORT ?= UART4
|
||||
MODEM_BAUD ?= B57600
|
||||
$(TARGET).CFLAGS += -DUART4_DEV=\"/dev/ttyO4\"
|
||||
|
||||
|
||||
# handle linux signals by hand (CTRL-C twice to stop)
|
||||
|
||||
@@ -27,7 +27,6 @@ MODEM_HOST ?= 192.168.42.255
|
||||
# The GPS sensor is connected internally
|
||||
GPS_PORT ?= UART1
|
||||
GPS_BAUD ?= B230400
|
||||
$(TARGET).CFLAGS += -DUART1_DEV=\"/dev/ttyPA1\"
|
||||
|
||||
# handle linux signals by hand
|
||||
$(TARGET).CFLAGS += -DUSE_LINUX_SIGNAL
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
* linux uart handling
|
||||
*/
|
||||
|
||||
#include BOARD_CONFIG
|
||||
|
||||
#include "mcu_periph/uart.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
#define BOARD_ARDRONE2_RAW
|
||||
|
||||
#define UART1_DEV "/dev/ttyUSB0"
|
||||
|
||||
/* Default actuators driver */
|
||||
#define DEFAULT_ACTUATORS "boards/ardrone/actuators_ardrone2_raw.h"
|
||||
#define ActuatorDefaultSet(_x,_y) ActuatorArdroneSet(_x,_y)
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
#define BOARD_ARDRONE2_SDK
|
||||
|
||||
#define UART1_DEV "/dev/ttyUSB0"
|
||||
|
||||
/* Internal communication */
|
||||
#define ARDRONE_NAVDATA_PORT 5554
|
||||
#define ARDRONE_AT_PORT 5556
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
#ifndef CONFIG_BEAGLE_BONE_BLACK
|
||||
#define CONFIG_BEAGLE_BONE_BLACK
|
||||
|
||||
// these are not the defines you are looking for...
|
||||
#define UART1_DEV "/dev/ttyO1"
|
||||
#define UART2_DEV "/dev/ttyO2"
|
||||
#define UART4_DEV "/dev/ttyO4"
|
||||
|
||||
|
||||
#endif /* CONFIG_BEAGLE_BONE_BLACK */
|
||||
|
||||
@@ -25,6 +25,9 @@
|
||||
|
||||
#define BOARD_BEBOP
|
||||
|
||||
/** uart connected to GPS internally */
|
||||
#define UART1_DEV "/dev/ttyPA1"
|
||||
|
||||
/* Default actuators driver */
|
||||
#define DEFAULT_ACTUATORS "boards/bebop/actuators.h"
|
||||
#define ActuatorDefaultSet(_x,_y) ActuatorsBebopSet(_x,_y)
|
||||
|
||||
Reference in New Issue
Block a user