forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathconfig.h
More file actions
108 lines (87 loc) · 3.04 KB
/
Copy pathconfig.h
File metadata and controls
108 lines (87 loc) · 3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/* Copyright 2025 @ Keychron (https://www.keychron.com)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "eeconfig_kb.h"
/* Model identifier reported in KC_GET_BATTERY (data[6]) so the host can show
* the keyboard model even over the 2.4 GHz dongle. Defined here (config.h) so
* every translation unit, including the shared keychron_raw_hid.c, sees it. */
#define KC_BATTERY_MODEL_ID 1
/* External EEPROM Configuration*/
#define I2C_DRIVER I2CD3
#define I2C1_SCL_PIN A8
#define I2C1_SDA_PIN C9
#define EXTERNAL_EEPROM_WP_PIN B10
/* Analog Matrix Configuration */
#define ANALOG_MATRIX_POWER_PIN C13
#define ANALOG_MATRIX_POWER_ENABLE_LEVEL 1
#define ANALOG_MATRIX_WAKEUP_PIN C5
/* OS Indication LED Pins */
#define LED_WIN_PIN B4
#define LED_MAC_PIN C11
#define LED_OS_PIN_ON_STATE 1
/* Joystick Configuration */
#ifdef JOYSTICK_ENABLE
# define JOYSTICK_AXIS_COUNT 6
# define JOYSTICK_BUTTON_COUNT 16
#endif
/* SPI Configuration */
#if defined(RGB_MATRIX_ENABLE) || defined(LK_WIRELESS_ENABLE)
# define SPI_DRIVER SPID1
# define SPI_SCK_PIN A5
# define SPI_MISO_PIN A6
# define SPI_MOSI_PIN A7
#endif
/* SNLED27351 Driver Configuration */
#if defined(RGB_MATRIX_ENABLE)
# define SNLED27351_SELECT_PINS \
{ B8, B9 }
# define SNLED27351_SDB_PIN B7
# define SNLED27351_SPI_DIVISOR 16
#endif
/* Wireless Configuration */
#ifdef LK_WIRELESS_ENABLE
/* Hardware Configuration */
# define SPI_SCK_PIN A5
# define SPI_MISO_PIN A6
# define SPI_MOSI_PIN A7
# define P24G_MODE_SELECT_PIN A9
# define BT_MODE_SELECT_PIN A10
# define LKBT51_RESET_PIN C4
# define WIRELESS_TO_MCU_INT_PIN B1
# define MCU_TO_WIRELESS_INT_PIN A4
# define USB_POWER_SENSE_PIN B0
# define USB_POWER_CONNECTED_LEVEL 0
# define BAT_CHARGING_PIN B13
# define BAT_CHARGING_LEVEL 0
# define BAT_LOW_LED_PIN B12
# define BAT_LOW_LED_PIN_ON_STATE 1
# if defined(RGB_MATRIX_ENABLE)
# define BT_INDCATION_LED_MATRIX_LIST \
{ 17, 18, 19 }
# define P24G_INDICATION_LED_INDEX 20
# define BAT_LEVEL_LED_LIST \
{ 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }
/* Reinit LED driver on tranport changed */
# define LED_DRIVER_REINIT_ON_TRANSPORT_CHANGE
# endif
/* Keep USB connection in wireless mode */
# define KEEP_USB_CONNECTION_IN_WIRELESS_MODE
/* Enable wireless NKRO */
# define WIRELESS_NKRO_ENABLE
#endif
/* Factory Test Keys */
#define FN_KEY_1 MO(1)
#define FN_KEY_2 MO(3)