pub fn pinmode_alternate_function(
pin: (char, u8),
af: u32,
) -> Result<Pin<AlternateFunction>, ProgError>Expand description
Configures an alternate function for a pin.
Takes pin identifier A0, C5, etc. and a AF number as arguments and returns a pin-struct for other functions. Panics if either pin identifier is not a valid pin or the AF value is not valid.