forked from mirrors/qmk_firmware
61fa6949fb
* 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>
45 lines
861 B
C
45 lines
861 B
C
// Copyright 2022 QMK
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
/**======================
|
|
** I2C Driver
|
|
*========================**/
|
|
|
|
#ifndef I2C_DRIVER
|
|
# define I2C_DRIVER I2CD1
|
|
#endif
|
|
#ifndef I2C1_SDA_PIN
|
|
# define I2C1_SDA_PIN D1
|
|
#endif
|
|
#ifndef I2C1_SCL_PIN
|
|
# define I2C1_SCL_PIN D0
|
|
#endif
|
|
|
|
/**======================
|
|
** UART Driver
|
|
*========================**/
|
|
|
|
#ifndef UART_DRIVER
|
|
# define UART_DRIVER SIOD0
|
|
#endif
|
|
|
|
#ifndef UART_TX_PIN
|
|
# define UART_TX_PIN D3
|
|
#endif
|
|
|
|
#ifndef UART_RX_PIN
|
|
# define UART_RX_PIN D2
|
|
#endif
|
|
|
|
/**======================
|
|
** Double-tap
|
|
*========================**/
|
|
|
|
#ifndef RP2040_BOOTLOADER_DOUBLE_TAP_RESET
|
|
# define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
|
|
#endif
|
|
#ifndef RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT
|
|
# define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U
|
|
#endif
|