- stm32h7xx_hal_rcc.c: Prevent signed-unsigned comparison warning
- [USBLIB] Take care of unused parameters
- [LIB] Stop signed-unsigned comparison warning (rcc_ex)
- Modify HAL SPI driver for const-ness to match call from current bus_spi driver
- [LIB] Handle unused in stm32h7xx_hal_flash.c
- UNUSED care for stm32h7xx_hal_rtc_ex.c
- UNUSED care for stm32h7xx_hal_pwr.c
- UNUSED care for stm32h7xx_hal_pcd.c
- UNUSED care for stm32h7xx_hal_flash.c
- UNUSED care for stm32h7xx_hal_adc_ex.c
As described in RM0433 section 49.4.13 "Data packing", STM32H7's SPI data register supports data packing and it is sensitive to actual access width.
The original code used pointer casting to obtain a code to access the register in a desired size.
However, these operation results in strict aliasing warnings (deferencing punned pointer) and are not desirable.
Here, we declare a union that allow access to a 32-bit register in 8, 16 or 32-bit width and cast pointer to the original RXDR and TXDR data registers and then access the portion of the register through an appropriate union member.
XXX FIXME Only handled 16-bit access case, as 32-bit (original declaration) and 8-bit (allowed) cases do not generate warnings, but these should be handled similarly for correctness and consistency of the code.
Reducing the feature cut from 10 to 7 will bring some newer and older useful features back to the BFF3 board without overflowing flash space. As the F3 boards are now seen as unsupported, this change can be made as a maintenance patch at the final supported level.
Notable features:
USE_SERIAL_4WAY_BLHELI_BOOTLOADER, USE_GYRO_LPF2, USE_DYN_LPF, USE_D_MIN
```
Linking BETAFLIGHTF3
Memory region Used Size Region Size %age Used
FLASH: 257640 B 252 KB 99.84%
FLASH_CONFIG: 0 GB 4 KB 0.00%
RAM: 34788 B 40 KB 84.93%
CCM: 2 KB 8 KB 25.00%
MEMORY_B1: 0 GB 0 GB -1.#J%
text data bss dec hex filename
253920 3720 33116 290756 46fc4 ./obj/main/betaflight_BETAFLIGHTF3.elf
```
Some users have reported flyaways on arming/throttling up with betaflight 4.0, in quads that fiy alright on 3.5.
This PR changes the default filtering so that D transmission more closely approximates that of 3.5.
With these defaults, quads that fly OK on 3.5 should not take-off vertically due to uncontrolled D oscillation.