Skip to main content

Module rcc

Module rcc 

Source

Functions§

enable_afio
enable_apb2
Batch-enable APB2 peripherals in a single write. Only safe at init before other peripherals are enabled.
enable_gpio
enable_usart
Enable USART n clock on whichever bus it lives on.
reset_apb2
Pulse-reset all APB2 peripherals (USART1, GPIO, AFIO, etc.) then disable their clocks — restores power-on default state.
usart_apb2_bit
APB2 enable bit for USART n, or 0 if not on APB2.