From 85d25b205f981bc6396df693899545cc666e0120 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 23 Mar 2024 15:24:52 +1100 Subject: [PATCH] hwdef: remove unused STM32_PWM_USE_ADVANCED defines --- libraries/AP_HAL_ChibiOS/hwdef/ACNS-CM4Pilot/hwdef.dat | 3 --- libraries/AP_HAL_ChibiOS/hwdef/ACNS-F405AIO/hwdef.dat | 3 --- libraries/AP_HAL_ChibiOS/hwdef/BeastF7/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/BeastF7v2/hwdef.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/BeastH7/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/BeastH7v2/hwdef.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/BlitzF745AIO/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/F35Lightning/hwdef.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/FlywooF745/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/HEEWING-F405/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/KakuteF4Mini/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/KakuteF7/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/KakuteF7Mini/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/KakuteH7/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/KakuteH7Mini/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/MatekF405-CAN/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/MatekF405-TE/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/MazzyStarDrone/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/OmnibusNanoV6-bdshot/hwdef.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/OmnibusNanoV6/hwdef.dat | 3 --- libraries/AP_HAL_ChibiOS/hwdef/RADIX2HD/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/ReaperF745/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/SPRacingH7/hwdef.dat | 1 - libraries/AP_HAL_ChibiOS/hwdef/SkystarsH7HD/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405WING/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v51/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v52/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v54/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/VRCore-v10/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/VRUBrain-v51/hwdef.dat | 2 -- libraries/AP_HAL_ChibiOS/hwdef/airbotf4/hwdef.dat | 3 --- libraries/AP_HAL_ChibiOS/hwdef/omnibusf4pro/hwdef.dat | 3 --- libraries/AP_HAL_ChibiOS/hwdef/omnibusf4v6/hwdef.dat | 4 ---- libraries/AP_HAL_ChibiOS/hwdef/sparky2/hwdef.dat | 2 -- 36 files changed, 74 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/ACNS-CM4Pilot/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/ACNS-CM4Pilot/hwdef.dat index 0d481c8c64..b7ccd9ff57 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/ACNS-CM4Pilot/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/ACNS-CM4Pilot/hwdef.dat @@ -187,9 +187,6 @@ define HAL_COMPASS_AUTO_ROT_DEFAULT 2 #define OSD_ENABLED 0 -define STM32_PWM_USE_ADVANCED TRUE - - # --------------------- save flash ---------------------- include ../include/minimize_features.inc diff --git a/libraries/AP_HAL_ChibiOS/hwdef/ACNS-F405AIO/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/ACNS-F405AIO/hwdef.dat index 5faa2efed3..299624fd64 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/ACNS-F405AIO/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/ACNS-F405AIO/hwdef.dat @@ -192,9 +192,6 @@ define HAL_COMPASS_AUTO_ROT_DEFAULT 2 #define OSD_ENABLED 0 -define STM32_PWM_USE_ADVANCED TRUE - - # --------------------- save flash ---------------------- include ../include/minimize_features.inc diff --git a/libraries/AP_HAL_ChibiOS/hwdef/BeastF7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/BeastF7/hwdef.dat index d1c3153292..7f85851f24 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/BeastF7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/BeastF7/hwdef.dat @@ -134,8 +134,6 @@ define OSD_ENABLED 1 define HAL_OSD_TYPE_DEFAULT 1 ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin -define STM32_PWM_USE_ADVANCED TRUE - # save some flash include ../include/minimize_fpv_osd.inc diff --git a/libraries/AP_HAL_ChibiOS/hwdef/BeastF7v2/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/BeastF7v2/hwdef.dat index e1c82946b5..d8af6fe30d 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/BeastF7v2/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/BeastF7v2/hwdef.dat @@ -10,7 +10,6 @@ undef BARO undef PD15 undef PE9 PE11 PB8 PB9 PB11 PB10 PA10 PA9 PA3 PA2 undef HAL_DEFAULT_INS_FAST_SAMPLE DMA_PRIORITY DMA_NOSHARE -undef STM32_PWM_USE_ADVANCED undef I2C1 # board ID for firmware load diff --git a/libraries/AP_HAL_ChibiOS/hwdef/BeastH7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/BeastH7/hwdef.dat index 183b3eb52f..5b2bc2ff9d 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/BeastH7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/BeastH7/hwdef.dat @@ -135,8 +135,6 @@ define OSD_ENABLED 1 define HAL_OSD_TYPE_DEFAULT 1 ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin -define STM32_PWM_USE_ADVANCED TRUE - define DEFAULT_NTF_LED_TYPES 257 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/BeastH7v2/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/BeastH7v2/hwdef.dat index be1ca4f118..8dad9af769 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/BeastH7v2/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/BeastH7v2/hwdef.dat @@ -10,7 +10,6 @@ undef BARO undef PD15 undef PE9 PE11 PB8 PB9 PB11 PB10 PA10 PA9 PA3 PA2 undef HAL_DEFAULT_INS_FAST_SAMPLE DMA_PRIORITY DMA_NOSHARE -undef STM32_PWM_USE_ADVANCED undef I2C1 # board ID for firmware load diff --git a/libraries/AP_HAL_ChibiOS/hwdef/BlitzF745AIO/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/BlitzF745AIO/hwdef.dat index 14da6c0054..3948b82569 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/BlitzF745AIO/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/BlitzF745AIO/hwdef.dat @@ -150,8 +150,6 @@ define ALLOW_ARM_NO_COMPASS define HAL_PROBE_EXTERNAL_I2C_COMPASSES define HAL_I2C_INTERNAL_MASK 0 -define STM32_PWM_USE_ADVANCED TRUE - # save some flash include ../include/minimize_fpv_osd.inc diff --git a/libraries/AP_HAL_ChibiOS/hwdef/F35Lightning/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/F35Lightning/hwdef.dat index 708b574cef..cccc1e50bb 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/F35Lightning/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/F35Lightning/hwdef.dat @@ -112,7 +112,6 @@ PB6 I2C1_SCL I2C1 PB7 I2C1_SDA I2C1 # PWM pins S1-S6 -define STM32_PWM_USE_ADVANCED TRUE PC8 TIM8_CH3 TIM8 PWM(1) GPIO(50) PC9 TIM8_CH4 TIM8 PWM(2) GPIO(51) PB8 TIM4_CH3 TIM4 PWM(3) GPIO(52) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/FlywooF745/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/FlywooF745/hwdef.dat index 8fcd90e9b9..91fc6dee3c 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/FlywooF745/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/FlywooF745/hwdef.dat @@ -158,8 +158,6 @@ define OSD_ENABLED 1 define HAL_OSD_TYPE_DEFAULT 1 ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin -define STM32_PWM_USE_ADVANCED TRUE - # FFT option (disabled by default) # define HAL_GYROFFT_ENABLED 1 # define AP_OAPATHPLANNER_ENABLED 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/HEEWING-F405/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/HEEWING-F405/hwdef.dat index f3fee9ff6d..74799f2969 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/HEEWING-F405/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/HEEWING-F405/hwdef.dat @@ -43,8 +43,6 @@ PB14 TIM1_CH2N TIM1 PWM(8) GPIO(57) PA8 TIM1_CH1 TIM1 PWM(9) GPIO(58) BIDIR PA15 TIM2_CH1 TIM2 PWM(10) GPIO(59) NODMA # no output -define STM32_PWM_USE_ADVANCED TRUE - # Beeper #PA7 TIM3_CH2 TIM3 GPIO(32) ALARM diff --git a/libraries/AP_HAL_ChibiOS/hwdef/KakuteF4Mini/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/KakuteF4Mini/hwdef.dat index 45a23fa080..daab9120f2 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/KakuteF4Mini/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/KakuteF4Mini/hwdef.dat @@ -37,8 +37,6 @@ PC8 TIM8_CH3 TIM8 PWM(5) GPIO(56) # LED strip DMA_PRIORITY ADC* USART3* TIM3* TIM5* SPI3* SPI1* DMA_NOSHARE SPI3_RX -define STM32_PWM_USE_ADVANCED TRUE - # save some flash include ../include/save_some_flash.inc define HAL_PARACHUTE_ENABLED 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7/hwdef.dat index ad7c9ee034..b0d9ea996a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7/hwdef.dat @@ -138,8 +138,6 @@ define HAL_BARO_ALLOW_INIT_NO_BARO define HAL_OS_FATFS_IO 1 -define STM32_PWM_USE_ADVANCED TRUE - # disable parachute to save flash define HAL_PARACHUTE_ENABLED 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7Mini/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7Mini/hwdef.dat index 21f6b67262..6567a81639 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7Mini/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7Mini/hwdef.dat @@ -150,8 +150,6 @@ define OSD_ENABLED 1 define HAL_OSD_TYPE_DEFAULT 1 ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin -define STM32_PWM_USE_ADVANCED TRUE - # disable parachute and sprayer to save flash define HAL_PARACHUTE_ENABLED 0 define HAL_SPRAYER_ENABLED 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7/hwdef.dat index f0009c0402..11dfb4ae41 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7/hwdef.dat @@ -157,6 +157,4 @@ define HAL_OS_FATFS_IO 1 define HAL_OSD_TYPE_DEFAULT 1 ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin -define STM32_PWM_USE_ADVANCED TRUE - define DEFAULT_NTF_LED_TYPES 257 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7Mini/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7Mini/hwdef.dat index 5182038ebd..0c2d49296f 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7Mini/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/KakuteH7Mini/hwdef.dat @@ -157,8 +157,6 @@ define OSD_ENABLED 1 define HAL_OSD_TYPE_DEFAULT 1 ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin -define STM32_PWM_USE_ADVANCED TRUE - define DEFAULT_NTF_LED_TYPES 257 define AP_SCRIPTING_ENABLED 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat index 239686e80c..d2f244e887 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat @@ -192,8 +192,6 @@ define OSD_ENABLED 1 define HAL_OSD_TYPE_DEFAULT 1 ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin -define STM32_PWM_USE_ADVANCED TRUE - define DEFAULT_NTF_LED_TYPES 257 define AP_SCRIPTING_ENABLED 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-CAN/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-CAN/hwdef.dat index ad148e79bf..d3e59c7c1f 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-CAN/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-CAN/hwdef.dat @@ -41,8 +41,6 @@ PB7 TIM4_CH2 TIM4 PWM(8) GPIO(57) PA15 TIM2_CH1 TIM2 PWM(9) GPIO(58) # LED pin -define STM32_PWM_USE_ADVANCED TRUE - # Beeper PA8 TIM1_CH1 TIM1 GPIO(32) ALARM diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-TE/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-TE/hwdef.dat index ca85f8defc..e4304e941a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-TE/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-TE/hwdef.dat @@ -44,8 +44,6 @@ PA6 TIM13_CH1 TIM13 PWM(10) GPIO(59) NODMA PB6 TIM4_CH1 TIM4 PWM(11) GPIO(60) NODMA PB1 TIM3_CH4 TIM3 PWM(12) GPIO(61) # LED pad -define STM32_PWM_USE_ADVANCED TRUE - # Beeper PB9 TIM11_CH1 TIM11 GPIO(32) ALARM diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat index 9c942c302b..06f535019f 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat @@ -180,8 +180,6 @@ define OSD_ENABLED 1 define HAL_OSD_TYPE_DEFAULT 1 ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin -define STM32_PWM_USE_ADVANCED TRUE - define HAL_GYROFFT_ENABLED 0 # save some flash diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MazzyStarDrone/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MazzyStarDrone/hwdef.dat index 1df2460bd4..76b7af6ca6 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MazzyStarDrone/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MazzyStarDrone/hwdef.dat @@ -159,7 +159,5 @@ BARO BMP280 I2C:0:0x76 define HAL_OS_FATFS_IO 1 -define STM32_PWM_USE_ADVANCED TRUE - # we are low on flash on this board include ../include/minimize_features.inc diff --git a/libraries/AP_HAL_ChibiOS/hwdef/OmnibusNanoV6-bdshot/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/OmnibusNanoV6-bdshot/hwdef.dat index e95336fc32..d9487d64df 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/OmnibusNanoV6-bdshot/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/OmnibusNanoV6-bdshot/hwdef.dat @@ -3,7 +3,6 @@ include ../OmnibusNanoV6/hwdef.dat undef PB0 PB1 PA3 PB5 -undef STM32_PWM_USE_ADVANCED PB0 TIM3_CH3 TIM3 PWM(1) GPIO(50) PB1 TIM3_CH4 TIM3 PWM(2) GPIO(51) BIDIR diff --git a/libraries/AP_HAL_ChibiOS/hwdef/OmnibusNanoV6/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/OmnibusNanoV6/hwdef.dat index 8554ca3766..5a9b40c46d 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/OmnibusNanoV6/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/OmnibusNanoV6/hwdef.dat @@ -143,9 +143,6 @@ define HAL_GPIO_A_LED_PIN 41 define OSD_ENABLED 1 define HAL_OSD_TYPE_DEFAULT 1 -#To complementary channels work we define this -define STM32_PWM_USE_ADVANCED TRUE - #font for the osd ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin diff --git a/libraries/AP_HAL_ChibiOS/hwdef/RADIX2HD/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/RADIX2HD/hwdef.dat index 3490c49019..d72d49438a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/RADIX2HD/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/RADIX2HD/hwdef.dat @@ -170,8 +170,6 @@ define HAL_I2C_INTERNAL_MASK 0 # filesystem setup on sdcard define HAL_OS_FATFS_IO 1 -define STM32_PWM_USE_ADVANCED TRUE - define HAL_STORAGE_SIZE 16384 # DMA diff --git a/libraries/AP_HAL_ChibiOS/hwdef/ReaperF745/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/ReaperF745/hwdef.dat index ad2e4b04c3..2d9aaec024 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/ReaperF745/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/ReaperF745/hwdef.dat @@ -143,8 +143,6 @@ define OSD_ENABLED 1 define HAL_OSD_TYPE_DEFAULT 1 ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin -define STM32_PWM_USE_ADVANCED TRUE - # save some flash include ../include/save_some_flash.inc include ../include/minimize_fpv_osd.inc diff --git a/libraries/AP_HAL_ChibiOS/hwdef/SPRacingH7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/SPRacingH7/hwdef.dat index 643ddb4fed..2e25bcc6a0 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/SPRacingH7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/SPRacingH7/hwdef.dat @@ -188,7 +188,6 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin define HAL_OS_FATFS_IO 1 define BOARD_PWM_COUNT_DEFAULT 11 -define STM32_PWM_USE_ADVANCED TRUE define HAL_STORAGE_SIZE 16384 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/SkystarsH7HD/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/SkystarsH7HD/hwdef.dat index 7668e12020..78239e60a1 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/SkystarsH7HD/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/SkystarsH7HD/hwdef.dat @@ -193,8 +193,6 @@ define OSD_ENABLED 1 define HAL_OSD_TYPE_DEFAULT 1 ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin -define STM32_PWM_USE_ADVANCED TRUE - define DEFAULT_NTF_LED_TYPES 257 define AP_SCRIPTING_ENABLED 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405WING/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405WING/hwdef.dat index 73a85c5dd3..0823673571 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405WING/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405WING/hwdef.dat @@ -167,8 +167,6 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin #VTX power control PC13 PINIO1 OUTPUT GPIO(81) LOW -define STM32_PWM_USE_ADVANCED TRUE - # minimal drivers to reduce flash usage include ../include/minimize_fpv_osd.inc diff --git a/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v51/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v51/hwdef.dat index a4e96f0fdd..efe9c18bd6 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v51/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v51/hwdef.dat @@ -161,7 +161,5 @@ define HAL_BATT_CURR_PIN 11 define HAL_BATT_VOLT_SCALE 10.1 define HAL_BATT_CURR_SCALE 17.0 -define STM32_PWM_USE_ADVANCED TRUE - # save some flash include ../include/minimize_features.inc diff --git a/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v52/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v52/hwdef.dat index 83c80fe017..8c6a2f4858 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v52/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v52/hwdef.dat @@ -161,7 +161,5 @@ define HAL_BATT_CURR_PIN 11 define HAL_BATT_VOLT_SCALE 10.1 define HAL_BATT_CURR_SCALE 17.0 -define STM32_PWM_USE_ADVANCED TRUE - # minimal drivers to reduce flash usage include ../include/minimize_features.inc diff --git a/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v54/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v54/hwdef.dat index ebdf9b10bf..647c30236d 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v54/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v54/hwdef.dat @@ -161,5 +161,3 @@ define HAL_BATT_VOLT_PIN 10 define HAL_BATT_CURR_PIN 11 define HAL_BATT_VOLT_SCALE 10.1 define HAL_BATT_CURR_SCALE 17.0 - -define STM32_PWM_USE_ADVANCED TRUE diff --git a/libraries/AP_HAL_ChibiOS/hwdef/VRCore-v10/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/VRCore-v10/hwdef.dat index 4336c7dcfa..770c0a75a6 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/VRCore-v10/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/VRCore-v10/hwdef.dat @@ -161,7 +161,5 @@ define HAL_BATT_CURR_PIN 11 define HAL_BATT_VOLT_SCALE 10.1 define HAL_BATT_CURR_SCALE 17.0 -define STM32_PWM_USE_ADVANCED TRUE - # minimal drivers to reduce flash usage include ../include/minimize_features.inc diff --git a/libraries/AP_HAL_ChibiOS/hwdef/VRUBrain-v51/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/VRUBrain-v51/hwdef.dat index 6cb3544f3c..ebb86cfb13 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/VRUBrain-v51/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/VRUBrain-v51/hwdef.dat @@ -164,8 +164,6 @@ define HAL_BATT_CURR_PIN -1 define HAL_BATT_VOLT_SCALE 10.1 define HAL_BATT_CURR_SCALE 17.0 -define STM32_PWM_USE_ADVANCED TRUE - # save some flash include ../include/save_some_flash.inc define HAL_SPEKTRUM_TELEM_ENABLED 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/airbotf4/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/airbotf4/hwdef.dat index 4385464744..f8cadff4e2 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/airbotf4/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/airbotf4/hwdef.dat @@ -100,8 +100,5 @@ define HAL_BATT_CURR_SCALE 18.2 define HAL_GPIO_A_LED_PIN 57 -#To complementary channels work we define this -define STM32_PWM_USE_ADVANCED TRUE - # 64kB FLASH_RESERVE_START_KB means we're lacking a lot of space: include ../include/minimize_features.inc diff --git a/libraries/AP_HAL_ChibiOS/hwdef/omnibusf4pro/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/omnibusf4pro/hwdef.dat index 0c7f94e691..a810350814 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/omnibusf4pro/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/omnibusf4pro/hwdef.dat @@ -144,9 +144,6 @@ define HAL_BATT_CURR_SCALE 18.2 define OSD_ENABLED 1 define HAL_OSD_TYPE_DEFAULT 1 -#To complementary channels work we define this -define STM32_PWM_USE_ADVANCED TRUE - #font for the osd ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin diff --git a/libraries/AP_HAL_ChibiOS/hwdef/omnibusf4v6/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/omnibusf4v6/hwdef.dat index 3ed2139872..4bdd5e91d8 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/omnibusf4v6/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/omnibusf4v6/hwdef.dat @@ -144,10 +144,6 @@ define BOARD_RSSI_ANA_PIN 0 define HAL_GPIO_A_LED_PIN 41 - -#To have complementary channels work we define this -define STM32_PWM_USE_ADVANCED TRUE - define OSD_ENABLED 1 #font for the osd ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin diff --git a/libraries/AP_HAL_ChibiOS/hwdef/sparky2/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/sparky2/hwdef.dat index 28d11889cc..9d026c7552 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/sparky2/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/sparky2/hwdef.dat @@ -134,7 +134,5 @@ SPIDEV dataflash SPI3 DEVID1 FLASH_CS MODE3 32*MHZ 32*MHZ # enable logging to dataflash define HAL_LOGGING_DATAFLASH_ENABLED 1 -define STM32_PWM_USE_ADVANCED TRUE - # we are low on flash on this board include ../include/minimize_features.inc