diff options
| author | Damien George | 2014-03-30 12:30:35 +0100 |
|---|---|---|
| committer | Damien George | 2014-03-30 12:30:35 +0100 |
| commit | 09d207785c77c85c957471b064ceebe0d2ee0a23 (patch) | |
| tree | 6c34e11ee61c820c807db06d3d3cd69611c13ddb /stmhal/usart.c | |
| parent | 24a140a444cfb2ebda7f0b6d0a88be9461a99d03 (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.c | 2 |
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; |
