From 113f792ad1801fe5f71d340b7f5f0ace929f8432 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Tue, 22 Dec 2020 00:16:12 -0800 Subject: [PATCH] AP_HAL_ChibiOS: update periph targets who have buzzer/LEDs with notify --- libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/defaults.parm | 6 ++++++ libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef.dat | 6 ++---- libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-periph/hwdef.dat | 1 + libraries/AP_HAL_ChibiOS/hwdef/Pixracer-periph/hwdef.dat | 3 +-- libraries/AP_HAL_ChibiOS/hwdef/f103-GPS/hwdef.dat | 4 ++-- libraries/AP_HAL_ChibiOS/hwdef/f303-GPS/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/f303-M10025/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/f303-M10070/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/f303-Universal/hwdef.dat | 2 +- 9 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/defaults.parm diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/defaults.parm new file mode 100644 index 0000000000..ad5a6003be --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/defaults.parm @@ -0,0 +1,6 @@ +# setup for Neopixel +OUT1_FUNCTION 120 +NTF_LED_TYPES 455 +NTF_LED_BRIGHT 2 +NTF_LED_LEN 8 + diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef.dat index 34dd3aaa32..3b02def74e 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef.dat @@ -154,10 +154,8 @@ define HAL_COMPASS_MAX_SENSORS 1 define HAL_PERIPH_ENABLE_GPS define HAL_PERIPH_ENABLE_MAG define HAL_PERIPH_ENABLE_BARO -define HAL_PERIPH_ENABLE_BUZZER -define HAL_PERIPH_NEOPIXEL_COUNT 8 -define HAL_PERIPH_NEOPIXEL_CHAN 0 -define HAL_PERIPH_LED_BRIGHT_DEFAULT 50 +define HAL_PERIPH_ENABLE_RC_OUT +define HAL_PERIPH_ENABLE_NOTIFY # use the app descriptor needed by MissionPlanner for CAN upload env APP_DESCRIPTOR MissionPlanner diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-periph/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-periph/hwdef.dat index bbe0f6d40a..357dc0cd67 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-periph/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange-periph/hwdef.dat @@ -23,6 +23,7 @@ define HAL_PERIPH_ENABLE_GPS define HAL_PERIPH_ENABLE_MAG define HAL_PERIPH_ENABLE_BARO define HAL_PERIPH_ENABLE_RC_OUT +define HAL_PERIPH_ENABLE_NOTIFY # use the app descriptor needed by MissionPlanner for CAN upload env APP_DESCRIPTOR MissionPlanner diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Pixracer-periph/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Pixracer-periph/hwdef.dat index 412025469b..0e218827ca 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Pixracer-periph/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Pixracer-periph/hwdef.dat @@ -97,8 +97,7 @@ define HAL_PERIPH_ENABLE_RANGEFINDER define HAL_PERIPH_RANGEFINDER_PORT_DEFAULT 1 define RANGEFINDER_MAX_INSTANCES 1 -define HAL_PERIPH_ENABLE_BUZZER -define HAL_PERIPH_ENABLE_NCP5623_LED +define HAL_PERIPH_ENABLE_NOTIFY # --------- LED ----------- # a LED to flash diff --git a/libraries/AP_HAL_ChibiOS/hwdef/f103-GPS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/f103-GPS/hwdef.dat index d757df769b..92c3655185 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/f103-GPS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/f103-GPS/hwdef.dat @@ -15,5 +15,5 @@ define HAL_UART_MIN_TX_SIZE 256 # GPS+MAG define HAL_PERIPH_ENABLE_GPS define HAL_PERIPH_ENABLE_MAG -#define HAL_PERIPH_ENABLE_NCP5623_LED -define HAL_PERIPH_ENABLE_TOSHIBA_LED +#define HAL_PERIPH_ENABLE_NCP5623_LED_WITHOUT_NOTIFY +define HAL_PERIPH_ENABLE_TOSHIBA_LED_WITHOUT_NOTIFY diff --git a/libraries/AP_HAL_ChibiOS/hwdef/f303-GPS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/f303-GPS/hwdef.dat index eda4af0e5c..6aa1ea9b53 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/f303-GPS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/f303-GPS/hwdef.dat @@ -15,4 +15,4 @@ define HAL_PROBE_EXTERNAL_I2C_COMPASSES # GPS+MAG define HAL_PERIPH_ENABLE_GPS define HAL_PERIPH_ENABLE_MAG -define HAL_PERIPH_ENABLE_NCP5623_LED +define HAL_PERIPH_ENABLE_NCP5623_LED_WITHOUT_NOTIFY diff --git a/libraries/AP_HAL_ChibiOS/hwdef/f303-M10025/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/f303-M10025/hwdef.dat index aedb0b8656..27f38a1ee2 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/f303-M10025/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/f303-M10025/hwdef.dat @@ -15,7 +15,7 @@ BARO DPS280 I2C:0:0x77 # GPS+MAG+LED+Baro define HAL_PERIPH_ENABLE_GPS define HAL_PERIPH_ENABLE_MAG -define HAL_PERIPH_ENABLE_NCP5623_BGR_LED +define HAL_PERIPH_ENABLE_NCP5623_BGR_LED_WITHOUT_NOTIFY define HAL_PERIPH_ENABLE_BARO # I2C Airspeed sensor must use a different address than 0x77 define HAL_PERIPH_ENABLE_AIRSPEED diff --git a/libraries/AP_HAL_ChibiOS/hwdef/f303-M10070/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/f303-M10070/hwdef.dat index d2df6f48f9..136d75452d 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/f303-M10070/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/f303-M10070/hwdef.dat @@ -18,7 +18,7 @@ BARO DPS280 I2C:0:0x77 # GPS+MAG+LED+Baro define HAL_PERIPH_ENABLE_GPS define HAL_PERIPH_ENABLE_MAG -define HAL_PERIPH_ENABLE_NCP5623_BGR_LED +define HAL_PERIPH_ENABLE_NCP5623_BGR_LED_WITHOUT_NOTIFY define HAL_PERIPH_ENABLE_BARO # Optional I2C Airspeed sensor connected to I2C connector diff --git a/libraries/AP_HAL_ChibiOS/hwdef/f303-Universal/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/f303-Universal/hwdef.dat index 0394575df5..fc6df4e1f4 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/f303-Universal/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/f303-Universal/hwdef.dat @@ -15,7 +15,7 @@ define HAL_PERIPH_ENABLE_MAG define HAL_PERIPH_ENABLE_BARO define HAL_PERIPH_ENABLE_AIRSPEED define HAL_PERIPH_ENABLE_ADSB -define HAL_PERIPH_ENABLE_NCP5623_LED +define HAL_PERIPH_ENABLE_NCP5623_LED_WITHOUT_NOTIFY define HAL_PERIPH_ENABLE_RANGEFINDER define HAL_PERIPH_ADSB_PORT_DEFAULT 3