Skip to content

Commit 7165fbd

Browse files
committed
stmhal: Add virtual com port support for STM32L476DISC.
1 parent b32c01b commit 7165fbd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

stmhal/boards/STM32L476DISC/mpconfigboard.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
#define MICROPY_HW_UART2_PORT (GPIOD)
3030
#define MICROPY_HW_UART2_PINS (GPIO_PIN_5 | GPIO_PIN_6)
3131

32+
// USART 2 is connected to the virtual com port on the ST-LINK
33+
#define MICROPY_HW_UART_REPL PYB_UART_2
34+
#define MICROPY_HW_UART_REPL_BAUD 115200
35+
3236
// I2C busses
3337
#define MICROPY_HW_I2C1_SCL (pin_B6)
3438
#define MICROPY_HW_I2C1_SDA (pin_B7)

0 commit comments

Comments
 (0)