aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/boards/stm32wbxx_hal_conf_base.h
AgeCommit message (Collapse)Author
2021-02-14stm32/uart: Add uart_set_baudrate function.Damien George
This allows changing the baudrate of the UART without reinitialising it (reinitialising can lead to spurious characters sent on the TX line). Signed-off-by: Damien George <damien@micropython.org>
2020-11-13stm32/rtc: Validate the RTC prescaler on boot and change if incorrect.Damien George
Devices with RTC backup-batteries have been shown (very rarely) to have incorrect RTC prescaler values. Such incorrect values mean the RTC counts fast or slow, and will be wrong forever if the power/backup-battery is always present. This commit detects such a state at start up (hard reset) and corrects it by reconfiguring the RTC prescaler values. Signed-off-by: Damien George <damien@micropython.org>
2020-10-29stm32/machine_adc: Fix ADC auto-calibration to run when ADC not enabled.Damien George
Prior to this commit, the ADC calibration code was never executing because ADVREGEN bit was set making the CR register always non-zero. This commit changes the logic so that ADC calibration is always run when the ADC is disabled and an ADC channel is initialised. It also uses the LL API functions to do the calibration, to make sure it is done correctly on each MCU variant. Signed-off-by: Damien George <damien@micropython.org>
2019-07-17stm32/boards: Add MCU support files for STM32WB55.Damien George