boards: st: add pa11 and pa12 remap
Add pa11 and pa12 remap to support USART1 via PA9 and PA10 pins Support for VCP is retablished Signed-off-by: Romain Pelletant <romainp@kickmaker.net>
This commit is contained in:
parent
bb0277da16
commit
325d2845e5
2 changed files with 9 additions and 4 deletions
|
@ -97,8 +97,8 @@ Default Zephyr Peripheral Mapping:
|
|||
|
||||
The STM32C0116 Discovery board is configured as follows:
|
||||
|
||||
- UART_2 TX/RX : PA2/PA3 (ST-Link Virtual Port Com)
|
||||
- UART_1 TX/RX : PA9/PA10
|
||||
- UART_2 TX/RX : PA2/PA3
|
||||
- UART_1 TX/RX : PA9/PA10 (ST-Link Virtual Port Com)
|
||||
- PWM_1_CH3 : PB6
|
||||
- ADC1_CH8 : PA8
|
||||
- LD3 : PB6
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
compatible = "st,stm32c011f6-dk";
|
||||
|
||||
chosen {
|
||||
zephyr,console = &usart2;
|
||||
zephyr,shell-uart = &usart2;
|
||||
zephyr,console = &usart1;
|
||||
zephyr,shell-uart = &usart1;
|
||||
zephyr,sram = &sram0;
|
||||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
@ -65,6 +65,11 @@
|
|||
apb1-prescaler = <1>;
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
remap-pa11;
|
||||
remap-pa12;
|
||||
};
|
||||
|
||||
&usart1 {
|
||||
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
|
||||
pinctrl-names = "default";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue