stm32f1xx-hal icon indicating copy to clipboard operation
stm32f1xx-hal copied to clipboard

`MCO` configuration after `freeze`

Open mayl opened this issue 4 years ago • 0 comments

As discussed on discourse, the STM32F1 family supports a feature named "MCO", which allows a clock to be routed to an external micro-controller pin. Which clock is turned on is controlled through MCO field of RCC_CFGR. Currently, stm32f1xx_hal does not expose a safe interface to this functionality because the RCC_CFGR is deliberately dropped on freeze. However, modifying this field of this register is safe and still upholds the static clock configuration contract of freeze.

Opening this issue here to track that a function to safely expose this functionality is desired, and solicit any additional feedback.

mayl avatar Jun 04 '20 07:06 mayl