Skip to content

Instantly share code, notes, and snippets.

@HarkonenBade
Created January 1, 2019 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HarkonenBade/9acdcedd3b5b58760dc0653146b679e1 to your computer and use it in GitHub Desktop.
Save HarkonenBade/9acdcedd3b5b58760dc0653146b679e1 to your computer and use it in GitHub Desktop.
pins! {
PA2 => {
AF1: TxPin<USART1>,
AF1: TxPin<USART2>,
},
PA3 => {
AF1: RxPin<USART1>,
AF1: RxPin<USART2>,
},
PA5 => {AF0: SckPin<SPI1>},
PA6 => {AF0: MisoPin<SPI1>},
PA7 => {AF0: MosiPin<SPI1>},
PA9 => {
AF1: TxPin<USART1>,
AF4: SclPin<I2C1>,
},
PA10 => {
AF1: RxPin<USART1>,
AF4: SdaPin<I2C1>,
},
PA14 => {
AF1: TxPin<USART1>,
AF1: TxPin<USART2>,
},
PA15 => {
AF1: RxPin<USART1>,
AF1: RxPin<USART2>,
},
PB3 => {AF0: SckPin<SPI1>},
PB4 => {AF0: MisoPin<SPI1>},
PB5 => {AF0: MosiPin<SPI1>},
PB6 => {
AF0: TxPin<USART1>,
AF1: SclPin<I2C1>,
},
PB7 => {
AF0: RxPin<USART1>,
AF1: SdaPin<I2C1>,
},
PB8 => {AF1: SclPin<I2C1>},
PB9 => {AF1: SdaPin<I2C1>},
PB10 => {
AF1: SclPin<I2C1>,
AF1: SclPin<I2C2>,
},
PB11 => {
AF1: SdaPin<I2C1>,
AF1: SdaPin<I2C2>,
},
PB13 => {
AF0: SckPin<SPI1>,
AF0: SckPin<SPI2>,
},
PB14 => {
AF0: MisoPin<SPI1>,
AF0: MisoPin<SPI2>,
},
PB15 => {
AF0: MosiPin<SPI1>,
AF0: MosiPin<SPI2>,
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment