[arch/linux][boards] define UART devices in board files

This commit is contained in:
Felix Ruess
2015-02-16 16:46:32 +01:00
parent 271a02388e
commit 6018c8d030
9 changed files with 13 additions and 10 deletions
-4
View File
@@ -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
-3
View File
@@ -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
-1
View File
@@ -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)
-1
View File
@@ -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>
+2
View File
@@ -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)
+2
View File
@@ -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
+4 -1
View File
@@ -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 */
+3
View File
@@ -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)