Browse Source

stmhal: Add virtual com port support for STM32L476DISC.

pull/2461/head
Nicholas Graumann 8 years ago
parent
commit
7165fbd8f4
  1. 4
      stmhal/boards/STM32L476DISC/mpconfigboard.h

4
stmhal/boards/STM32L476DISC/mpconfigboard.h

@ -29,6 +29,10 @@
#define MICROPY_HW_UART2_PORT (GPIOD)
#define MICROPY_HW_UART2_PINS (GPIO_PIN_5 | GPIO_PIN_6)
// USART 2 is connected to the virtual com port on the ST-LINK
#define MICROPY_HW_UART_REPL PYB_UART_2
#define MICROPY_HW_UART_REPL_BAUD 115200
// I2C busses
#define MICROPY_HW_I2C1_SCL (pin_B6)
#define MICROPY_HW_I2C1_SDA (pin_B7)

Loading…
Cancel
Save