pub fn generic_clock_enable_divided(clock: GenericClock, source: ClockSource, divider: u16) {
    generic_clock_control_write(
        clock,
        GenericClockControl::OCSEL.val(source as u32) + GenericClockControl::DIVEN::SET
            + GenericClockControl::DIV.val(divider as u32) + GenericClockControl::CEN::SET,
    );
}
// Note that most clocks can only support 8 bits of divider:
// interface does not currently check this. -pal
Note that most clocks can only support 8 bits of divider:
interface does not currently check this. -pal
Note that most clocks can only support 8 bits of divider : interface does not currently check this . - pal
pub fn generic_clock_enable_divided(clock: GenericClock, source: ClockSource, divider: u16) {
    generic_clock_control_write(
        clock,
        GenericClockControl::OCSEL.val(source as u32) + GenericClockControl::DIVEN::SET
            + GenericClockControl::DIV.val(divider as u32) + GenericClockControl::CEN::SET,
    );
}
pub fn generic_clock_enable_divided ( clock : GenericClock , source : ClockSource , divider : u16 ) { generic_clock_control_write ( clock , GenericClockControl :: OCSEL . val ( source as u32 ) + GenericClockControl :: DIVEN :: SET + GenericClockControl :: DIV . val ( divider as u32 ) + GenericClockControl :: CEN :: SET , ) ; }
Note that most clocks can only support 8 bits of divider:
interface does not currently check this.
Note that most clocks can only support 8 bits of divider : interface does not currently check this .
clock
GenericClock
source
ClockSource
divider
u16
clock
GenericClock
source
ClockSource
divider
u16