2023-05-22 06:04:19 +00:00
|
|
|
// Copyright 2022 QMK
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-02-20 10:34:24 +00:00
|
|
|
/**======================
|
|
|
|
** I2C Driver
|
|
|
|
*========================**/
|
|
|
|
|
2023-05-22 06:04:19 +00:00
|
|
|
#ifndef I2C_DRIVER
|
|
|
|
# define I2C_DRIVER I2CD0
|
|
|
|
#endif
|
|
|
|
#ifndef I2C1_SDA_PIN
|
|
|
|
# define I2C1_SDA_PIN D1
|
|
|
|
#endif
|
|
|
|
#ifndef I2C1_SCL_PIN
|
|
|
|
# define I2C1_SCL_PIN D0
|
|
|
|
#endif
|
|
|
|
|
2024-02-20 10:34:24 +00:00
|
|
|
/**======================
|
|
|
|
** 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
|
|
|
|
*========================**/
|
|
|
|
|
2023-05-22 06:04:19 +00:00
|
|
|
#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
|