summaryrefslogtreecommitdiff
path: root/stmhal/boards/ESPRUINO_PICO
diff options
context:
space:
mode:
authorEero af Heurlin <rambo@iki.fi>2015-05-02 19:31:39 +0300
committerDamien George <damien.p.george@gmail.com>2015-05-03 13:48:26 +0100
commit2378be4e933dda0f7e7adb2f227530d3fcc3a6aa (patch)
tree1269a4bfeac520370778f61dfa537592cb62768f /stmhal/boards/ESPRUINO_PICO
parent8c8d7f3c60ff10e90243b47172a6979bdf2b9fd1 (diff)
stmhal: Allow to configure UART pins completely via mpconfigboard.h.
Diffstat (limited to 'stmhal/boards/ESPRUINO_PICO')
-rw-r--r--stmhal/boards/ESPRUINO_PICO/mpconfigboard.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/stmhal/boards/ESPRUINO_PICO/mpconfigboard.h b/stmhal/boards/ESPRUINO_PICO/mpconfigboard.h
index 7084d2418..221c0ab1f 100644
--- a/stmhal/boards/ESPRUINO_PICO/mpconfigboard.h
+++ b/stmhal/boards/ESPRUINO_PICO/mpconfigboard.h
@@ -26,6 +26,16 @@
// does not have a 32kHz crystal
#define MICROPY_HW_RTC_USE_LSE (0)
+// UART config
+#define MICROPY_HW_UART1_PORT (GPIOB)
+#define MICROPY_HW_UART1_PINS (GPIO_PIN_6 | GPIO_PIN_7)
+#define MICROPY_HW_UART2_PORT (GPIOA)
+#define MICROPY_HW_UART2_PINS (GPIO_PIN_2 | GPIO_PIN_3)
+#define MICROPY_HW_UART2_RTS (GPIO_PIN_1)
+#define MICROPY_HW_UART2_CTS (GPIO_PIN_0)
+#define MICROPY_HW_UART6_PORT (GPIOA)
+#define MICROPY_HW_UART6_PINS (GPIO_PIN_11 | GPIO_PIN_12)
+
// I2C busses
#define MICROPY_HW_I2C1_SCL (pin_B6)
#define MICROPY_HW_I2C1_SDA (pin_B7)