USART codegen
This commit is contained in:
@ -108,3 +108,30 @@ impl_gpio_pin!(PH12, 7, 12, EXTI12);
|
||||
impl_gpio_pin!(PH13, 7, 13, EXTI13);
|
||||
impl_gpio_pin!(PH14, 7, 14, EXTI14);
|
||||
impl_gpio_pin!(PH15, 7, 15, EXTI15);
|
||||
impl_usart!(USART1, 0x40011000);
|
||||
impl_usart_pin!(USART1, RxPin, PA10, 7);
|
||||
impl_usart_pin!(USART1, CtsPin, PA11, 7);
|
||||
impl_usart_pin!(USART1, RtsPin, PA12, 7);
|
||||
impl_usart_pin!(USART1, TxPin, PA15, 7);
|
||||
impl_usart_pin!(USART1, CkPin, PA8, 7);
|
||||
impl_usart_pin!(USART1, TxPin, PA9, 7);
|
||||
impl_usart_pin!(USART1, RxPin, PB3, 7);
|
||||
impl_usart_pin!(USART1, TxPin, PB6, 7);
|
||||
impl_usart_pin!(USART1, RxPin, PB7, 7);
|
||||
impl_usart!(USART2, 0x40004400);
|
||||
impl_usart_pin!(USART2, CtsPin, PA0, 7);
|
||||
impl_usart_pin!(USART2, RtsPin, PA1, 7);
|
||||
impl_usart_pin!(USART2, TxPin, PA2, 7);
|
||||
impl_usart_pin!(USART2, RxPin, PA3, 7);
|
||||
impl_usart_pin!(USART2, CkPin, PA4, 7);
|
||||
impl_usart_pin!(USART2, CtsPin, PD3, 7);
|
||||
impl_usart_pin!(USART2, RtsPin, PD4, 7);
|
||||
impl_usart_pin!(USART2, TxPin, PD5, 7);
|
||||
impl_usart_pin!(USART2, RxPin, PD6, 7);
|
||||
impl_usart_pin!(USART2, CkPin, PD7, 7);
|
||||
impl_usart!(USART6, 0x40011400);
|
||||
impl_usart_pin!(USART6, TxPin, PA11, 8);
|
||||
impl_usart_pin!(USART6, RxPin, PA12, 8);
|
||||
impl_usart_pin!(USART6, TxPin, PC6, 8);
|
||||
impl_usart_pin!(USART6, RxPin, PC7, 8);
|
||||
impl_usart_pin!(USART6, CkPin, PC8, 8);
|
||||
|
Reference in New Issue
Block a user