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:
Romain Pelletant 2024-05-03 20:49:55 +02:00 committed by Maureen Helm
commit 325d2845e5
2 changed files with 9 additions and 4 deletions

View file

@ -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

View file

@ -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";