diff --git a/src/gpio.rs b/src/gpio.rs index f107dff..382bd2a 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -134,6 +134,8 @@ pub struct PushPull; /// Analog mode (type state) pub struct Analog; +pub type Debugger = Alternate<0>; + /// GPIO Pin speed selection #[derive(Debug, PartialEq, Eq, Clone, Copy)] pub enum Speed { @@ -645,17 +647,17 @@ gpio!(GPIOA, gpioa, PA, 'A', PAn, [ PA10: (pa10, 10, Input), PA11: (pa11, 11, Input), PA12: (pa12, 12, Input), - PA13: (pa13, 13, Input), - PA14: (pa14, 14, Input), - PA15: (pa15, 15, Input), + PA13: (pa13, 13, super::Debugger), // SWDIO, PullUp VeryHigh speed + PA14: (pa14, 14, super::Debugger), // SWCLK, PullDown + PA15: (pa15, 15, super::Debugger), // JTDI, PullUp ]); gpio!(GPIOB, gpiob, PB, 'B', PBn, [ PB0: (pb0, 0, Input), PB1: (pb1, 1, Input), PB2: (pb2, 2, Input), - PB3: (pb3, 3, Input), - PB4: (pb4, 4, Input), + PB3: (pb3, 3, super::Debugger), // SWO, VeryHigh speed + PB4: (pb4, 4, super::Debugger), // JTRST, PullUp PB5: (pb5, 5, Input), PB6: (pb6, 6, Input), PB7: (pb7, 7, Input),