diff options
author | Stefan Kerkmann <karlk90@pm.me> | 2024-02-20 11:34:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 11:34:24 +0100 |
commit | 61fa6949fbb537f54d48a4fc0218ff2b6873e940 (patch) | |
tree | 400f8f4920888097c0e22c68cb5fa742b0e340c8 /platforms/chibios/boards/GENERIC_PROMICRO_RP2040/configs/config.h | |
parent | 865a8f42a6128dfc09a24fe749b0d78d8c69b70e (diff) |
[Core] Allow ChibiOS `SIO` driver for `UART` driver (#22839)
* onekey: stm32f3_disco: add usart pins and activate peripheral
Signed-off-by: Stefan Kerkmann <karlk90@pm.me>
* chibios: uart: change SD1 prefix to UART
Signed-off-by: Stefan Kerkmann <karlk90@pm.me>
* chibios: uart: add SIO driver and RP2040 compatibility
Signed-off-by: Stefan Kerkmann <karlk90@pm.me>
Co-authored-by: Sergey Vlasov <sigprof@gmail.com>
* Update platforms/chibios/drivers/uart.h
Co-authored-by: Joel Challis <git@zvecr.com>
---------
Signed-off-by: Stefan Kerkmann <karlk90@pm.me>
Co-authored-by: Sergey Vlasov <sigprof@gmail.com>
Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'platforms/chibios/boards/GENERIC_PROMICRO_RP2040/configs/config.h')
-rw-r--r-- | platforms/chibios/boards/GENERIC_PROMICRO_RP2040/configs/config.h | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/platforms/chibios/boards/GENERIC_PROMICRO_RP2040/configs/config.h b/platforms/chibios/boards/GENERIC_PROMICRO_RP2040/configs/config.h index 9209e99e76..73c2b40f46 100644 --- a/platforms/chibios/boards/GENERIC_PROMICRO_RP2040/configs/config.h +++ b/platforms/chibios/boards/GENERIC_PROMICRO_RP2040/configs/config.h @@ -1,4 +1,4 @@ -// Copyright 2022 Stefan Kerkmann +// Copyright 2024 Stefan Kerkmann // SPDX-License-Identifier: GPL-2.0-or-later #pragma once @@ -56,7 +56,31 @@ #endif /**====================== + ** UART Driver + *========================**/ + +#if !defined(UART_DRIVER) +# define UART_DRIVER SIOD0 +#endif + +#if !defined(UART_TX_PIN) +# define UART_TX_PIN GP0 +#endif + +#if !defined(UART_RX_PIN) +# define UART_RX_PIN GP1 +#endif + +#if !defined(UART_CTS_PIN) +# define UART_CTS_PIN GP2 +#endif + +#if !defined(UART_RTS_PIN) +# define UART_RTS_PIN GP3 +#endif + +/**====================== ** Double-tap *========================**/ -#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET +#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET |