56 lines
1.3 KiB
C
56 lines
1.3 KiB
C
// Copyright 2022 Framework Computer
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <config_common.h>
|
|
|
|
#define MATRIX_COLS 16
|
|
#define MATRIX_ROWS 8
|
|
|
|
// TODO: Adjust this. The GPIO is definitely wrong
|
|
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
|
|
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED GP25
|
|
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U
|
|
|
|
#define SERIAL_USART_FULL_DUPLEX
|
|
#define SERIAL_USART_TX_PIN GP0
|
|
#define SERIAL_USART_RX_PIN GP1
|
|
|
|
#define LED_CAPS_LOCK_PIN GP24
|
|
//#define LED_NUM_LOCK_PIN GP24
|
|
|
|
#define SERIAL_DEBUG
|
|
|
|
#define WS2812_PIO_USE_PIO1
|
|
|
|
#define DRIVER_COUNT 1
|
|
#define RGB_MATRIX_LED_COUNT 97
|
|
// For the numpad
|
|
// #define RGB_MATRIX_LED_COUNT 22
|
|
|
|
// PWM single one backlight configuration
|
|
// TODO: Double-check these
|
|
// The RP2040 datasheet says GPIO25 maps to PWM channel 4B
|
|
#define BACKLIGHT_PWM_DRIVER PWMD4
|
|
#define BACKLIGHT_PWM_CHANNEL RP2040_PWM_CHANNEL_B
|
|
|
|
/* define if matrix has ghost (lacks anti-ghosting diodes) */
|
|
//#define MATRIX_HAS_GHOST
|
|
|
|
/*
|
|
* Feature disable options
|
|
* These options are also useful to firmware size reduction.
|
|
*/
|
|
|
|
/* disable debug print */
|
|
//#define NO_DEBUG
|
|
|
|
/* disable print */
|
|
//#define NO_PRINT
|
|
|
|
/* disable action features */
|
|
//#define NO_ACTION_LAYER
|
|
//#define NO_ACTION_TAPPING
|
|
//#define NO_ACTION_ONESHOT
|