From 61b8cbc3c6dccf83e9ff66fff38a0c26aecaed0d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 10 Jul 2018 16:27:17 +1000 Subject: [PATCH] HAL_ChibiOS: added separate builds for Pixhawk4 and CUAVv5 this makes it easier to distinguish boards in logs, plus makes life easier when the user is selecting the right firmware. It also gives us the flexibility to make parameter changes as needed --- libraries/AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef-bl.dat | 4 ++++ libraries/AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef.dat | 4 ++++ libraries/AP_HAL_ChibiOS/hwdef/PH4-mini/defaults.parm | 4 ++++ libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4/defaults.parm | 4 ++++ libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4/hwdef-bl.dat | 4 ++++ libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4/hwdef.dat | 5 +++++ 6 files changed, 25 insertions(+) create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/PH4-mini/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4/hwdef.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef-bl.dat new file mode 100644 index 0000000000..9ddc9a026d --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef-bl.dat @@ -0,0 +1,4 @@ +# hw definition file for processing by chibios_hwdef.py +# for CUAVv5 bootloader + +include ../fmuv5/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef.dat new file mode 100644 index 0000000000..617155c018 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5/hwdef.dat @@ -0,0 +1,4 @@ +# hw definition file for processing by chibios_hwdef.py +# for CUAVv5 hardware. + +include ../fmuv5/hwdef.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/PH4-mini/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/PH4-mini/defaults.parm new file mode 100644 index 0000000000..ccd4e2f888 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/PH4-mini/defaults.parm @@ -0,0 +1,4 @@ + +# Pixhawk4 does not have hw flow control on radios +BRD_SER1_RTSCTS 0 +BRD_SER2_RTSCTS 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4/defaults.parm new file mode 100644 index 0000000000..ccd4e2f888 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4/defaults.parm @@ -0,0 +1,4 @@ + +# Pixhawk4 does not have hw flow control on radios +BRD_SER1_RTSCTS 0 +BRD_SER2_RTSCTS 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4/hwdef-bl.dat new file mode 100644 index 0000000000..8f84484e43 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4/hwdef-bl.dat @@ -0,0 +1,4 @@ +# hw definition file for processing by chibios_hwdef.py +# for Pixhawk4 bootloader + +include ../fmuv5/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4/hwdef.dat new file mode 100644 index 0000000000..e273b7fdc5 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4/hwdef.dat @@ -0,0 +1,5 @@ +# hw definition file for processing by chibios_hwdef.py +# for Holybro Pixhawk4 hardware. + +include ../fmuv5/hwdef.dat +