Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hwdef: STM32_PWM_USE_ADVANCED cleanup #25544

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/ACNS-CM4Pilot/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions libraries/AP_HAL_ChibiOS/hwdef/ACNS-F405AIO/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +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

2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/BeastF7/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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/save_some_flash.inc

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/BeastF7v2/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/BeastH7/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/BeastH7v2/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/BlitzF745AIO/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ BARO DPS310 I2C:1:0x76
define ALLOW_ARM_NO_COMPASS
define HAL_I2C_INTERNAL_MASK 0

define STM32_PWM_USE_ADVANCED TRUE

# save some flash
include ../include/save_some_flash.inc

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/F35Lightning/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/FlywooF745/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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 AC_OAPATHPLANNER_ENABLED 0
Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/HEEWING-F405/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/KakuteF4Mini/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/KakuteF7/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/KakuteF7Mini/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/KakuteH7/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,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
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/KakuteH7Mini/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/MatekF405-CAN/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/MatekF405-TE/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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

# reduce max size of embedded params for apj_tool.py
define AP_PARAM_MAX_EMBEDDED_PARAM 1024
define HAL_GYROFFT_ENABLED 0
Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/MazzyStarDrone/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/OmnibusNanoV6/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/RADIX2HD/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@ define HAL_PROBE_EXTERNAL_I2C_COMPASSES
# filesystem setup on sdcard
define HAL_OS_FATFS_IO 1

define STM32_PWM_USE_ADVANCED TRUE

define HAL_STORAGE_SIZE 16384

# DMA
Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/ReaperF745/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/SPRacingH7/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/SkystarsH7HD/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405WING/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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

# reduce max size of embedded params for apj_tool.py
define AP_PARAM_MAX_EMBEDDED_PARAM 1024
define HAL_WITH_DSP FALSE
Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v51/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v52/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v54/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,3 @@ 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
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/VRCore-v10/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/VRUBrain-v51/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,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
Expand Down
3 changes: 0 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/airbotf4/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 0 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/common/stm32f47_mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,6 @@
/*
* PWM driver system settings.
*/
#ifndef STM32_PWM_USE_ADVANCED
#define STM32_PWM_USE_ADVANCED FALSE
#endif
#define STM32_PWM_TIM1_IRQ_PRIORITY 7
#define STM32_PWM_TIM2_IRQ_PRIORITY 7
#define STM32_PWM_TIM3_IRQ_PRIORITY 7
Expand Down
3 changes: 0 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/omnibusf4pro/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 0 additions & 4 deletions libraries/AP_HAL_ChibiOS/hwdef/omnibusf4v6/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/sparky2/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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