summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorNicholas Graumann <ravotus@gmail.com>2016-09-27 22:08:55 -0500
committerNicholas Graumann <ravotus@gmail.com>2016-09-27 22:08:55 -0500
commit7165fbd8f4e5b772d8fae6b2af9a8aad7524e81d (patch)
treeff56beaf1c16190e5934b97c9fa58521aca68b83
parentb32c01b7489f233ae7b1c211a8b93e23149fb0f3 (diff)
downloadmicropython-7165fbd8f4e5b772d8fae6b2af9a8aad7524e81d.tar.gz
micropython-7165fbd8f4e5b772d8fae6b2af9a8aad7524e81d.zip
stmhal: Add virtual com port support for STM32L476DISC.
-rw-r--r--stmhal/boards/STM32L476DISC/mpconfigboard.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/stmhal/boards/STM32L476DISC/mpconfigboard.h b/stmhal/boards/STM32L476DISC/mpconfigboard.h
index 79857ccc26..07e3ec7fdc 100644
--- a/stmhal/boards/STM32L476DISC/mpconfigboard.h
+++ b/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)