aboutsummaryrefslogtreecommitdiff
path: root/stmhal/usart.c
diff options
context:
space:
mode:
authorDamien George2014-03-30 12:30:35 +0100
committerDamien George2014-03-30 12:30:35 +0100
commit09d207785c77c85c957471b064ceebe0d2ee0a23 (patch)
tree6c34e11ee61c820c807db06d3d3cd69611c13ddb /stmhal/usart.c
parent24a140a444cfb2ebda7f0b6d0a88be9461a99d03 (diff)
stmhal: Unify naming of HW config; make SD detect configurable.
All board config macros now begin with MICROPY_HW_. Renamed PYBv10 to PYBV10, since macros should be all uppercase. Made SDCARD_DETECT configurable in mpconfigport.h, so that the SD detect pin can be easily configured.
Diffstat (limited to 'stmhal/usart.c')
-rw-r--r--stmhal/usart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/usart.c b/stmhal/usart.c
index daf8a9e1f..14539c597 100644
--- a/stmhal/usart.c
+++ b/stmhal/usart.c
@@ -52,7 +52,7 @@ void usart_init(pyb_usart_obj_t *usart_obj, uint32_t baudrate) {
case PYB_USART_3:
USARTx = USART3;
-#if defined(PYBOARD3) || defined(PYBOARD4)
+#if defined(PYBV3) || defined(PYBV4)
GPIO_Port = GPIOB;
GPIO_AF_USARTx = GPIO_AF7_USART3;
GPIO_Pin = GPIO_PIN_10 | GPIO_PIN_11;