Skip to main content

Module mco

Module mco 

Source
Expand description

Microcontroller clock output (MCO).

The MCO output is configured after crate::rcc::init, because it borrows the pin that carries the signal. The driver writes RCC_CFGR0.MCO and switches the pin to alternate-function push-pull; it does not change the clock tree.

Pin assignment differs across the series:

FamilyPin
CH32V1/V2/V3/V4, CH32L1PA8
CH32V0PC4
CH32X0, CH643PB9
CH641PB7
CH32H4PB0 (AF0)

The valid pins come from the ch32-data pin tables; the McoPin impls are generated by build.rs.

Structs§

Mco
MCO output driver.

Enums§

McoSource
Microcontroller clock output.

Traits§

McoPin
Pin that can carry the MCO signal.