From ec441fdba66e2af326f185c154e192e07663af17 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Tue, 1 Feb 2022 12:00:17 -0800 Subject: [PATCH] gnss-m9n-f4:Add serial_passthru --- boards/matek/gnss-m9n-f4/default.px4board | 1 + boards/matek/gnss-m9n-f4/nuttx-config/Kconfig | 23 +++++++++++++++++++ .../gnss-m9n-f4/nuttx-config/nsh/defconfig | 1 + 3 files changed, 25 insertions(+) create mode 100644 boards/matek/gnss-m9n-f4/nuttx-config/Kconfig diff --git a/boards/matek/gnss-m9n-f4/default.px4board b/boards/matek/gnss-m9n-f4/default.px4board index 6e0bcfa981..2d4083d682 100644 --- a/boards/matek/gnss-m9n-f4/default.px4board +++ b/boards/matek/gnss-m9n-f4/default.px4board @@ -14,6 +14,7 @@ CONFIG_SYSTEMCMDS_I2CDETECT=y CONFIG_SYSTEMCMDS_NSHTERM=y CONFIG_SYSTEMCMDS_PARAM=y CONFIG_SYSTEMCMDS_REBOOT=y +CONFIG_SYSTEMCMDS_SERIAL_PASSTHRU=y CONFIG_SYSTEMCMDS_TOP=y CONFIG_SYSTEMCMDS_TOPIC_LISTENER=y CONFIG_SYSTEMCMDS_UORB=y diff --git a/boards/matek/gnss-m9n-f4/nuttx-config/Kconfig b/boards/matek/gnss-m9n-f4/nuttx-config/Kconfig new file mode 100644 index 0000000000..e991f5a766 --- /dev/null +++ b/boards/matek/gnss-m9n-f4/nuttx-config/Kconfig @@ -0,0 +1,23 @@ +menu "SERIAL_PASSTHRU Configuration" +config SERIAL_PASSTHRU_UBLOX + bool "Detect and Auto Connect on U-Center messages" + default n + ---help--- + This option will enable the cdc_acm_check to launch + The passthru driver. + +config SERIAL_PASSTHRU_UBLOX_DEV + string "Device path of the GPS" + depends on SERIAL_PASSTHRU_UBLOX + default "/dev/ttyS2" + ---help--- + This is the path of the device used as the right side + of the passthru. + +config SERIAL_PASSTHRU_UBLOX_BAUDRATE + string "baudrate" + depends on SERIAL_PASSTHRU_UBLOX + default "115200" + ---help--- + This option sets the baudrate for the passthru. +endmenu diff --git a/boards/matek/gnss-m9n-f4/nuttx-config/nsh/defconfig b/boards/matek/gnss-m9n-f4/nuttx-config/nsh/defconfig index 8540c51faa..7ae8c5ed83 100644 --- a/boards/matek/gnss-m9n-f4/nuttx-config/nsh/defconfig +++ b/boards/matek/gnss-m9n-f4/nuttx-config/nsh/defconfig @@ -128,6 +128,7 @@ CONFIG_SCHED_LPWORKSTACKSIZE=1632 CONFIG_SCHED_WAITPID=y CONFIG_SEM_NNESTPRIO=8 CONFIG_SEM_PREALLOCHOLDERS=0 +CONFIG_SERIAL_PASSTHRU_UBLOX=y CONFIG_SERIAL_TERMIOS=y CONFIG_SIG_DEFAULT=y CONFIG_SIG_SIGALRM_ACTION=y