diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange/hwdef.dat index 3936917cf3..985f9e8bab 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange/hwdef.dat @@ -307,6 +307,7 @@ define HAL_BATT_CURR_PIN 15 define HAL_BATT_VOLT_SCALE 10.1 define HAL_BATT_CURR_SCALE 17.0 define HAL_GPIO_PWM_VOLT_PIN 3 +define HAL_GPIO_PWM_VOLT_3v3 1 # List of files to put in ROMFS. For fmuv3 we need an IO firmware so # we can automatically update the IOMCU firmware on boot. The format diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeYellow/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeYellow/hwdef.dat index fecf294899..6daf99bc69 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubeYellow/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeYellow/hwdef.dat @@ -454,6 +454,7 @@ define HAL_BATT_CURR_PIN 3 define HAL_BATT_VOLT_SCALE 10.1 define HAL_BATT_CURR_SCALE 17.0 define HAL_GPIO_PWM_VOLT_PIN 3 +define HAL_GPIO_PWM_VOLT_3v3 1 # this defines the default maximum clock on I2C devices. define HAL_I2C_MAX_CLOCK 100000 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/mRoPixracerPro/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/mRoPixracerPro/hwdef.dat index 1688b40a43..6bfe7f37b9 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/mRoPixracerPro/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/mRoPixracerPro/hwdef.dat @@ -211,6 +211,8 @@ PI3 VDD_1V8_SENSORS_EN OUTPUT HIGH # Pin for PWM Voltage Selection, 0 means 3.3v, 1 means 5v PG6 PWM_VOLT_SEL OUTPUT LOW GPIO(74) +define HAL_GPIO_PWM_VOLT_PIN 74 +define HAL_GPIO_PWM_VOLT_3v3 0 # Power flag pins: these tell the MCU the status of the various power # supplies that are available. The pin names need to exactly match the