summaryrefslogtreecommitdiffstats
path: root/keyboards/keychron/q1_pro
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keychron/q1_pro')
-rw-r--r--keyboards/keychron/q1_pro/config.h2
-rw-r--r--keyboards/keychron/q1_pro/q1_pro.c10
-rw-r--r--keyboards/keychron/q1_pro/rules.mk5
3 files changed, 8 insertions, 9 deletions
diff --git a/keyboards/keychron/q1_pro/config.h b/keyboards/keychron/q1_pro/config.h
index cc17c33a92..0b1aa45d86 100644
--- a/keyboards/keychron/q1_pro/config.h
+++ b/keyboards/keychron/q1_pro/config.h
@@ -25,6 +25,8 @@
#ifdef KC_BLUETOOTH_ENABLE
/* Hardware configuration */
# define USB_BT_MODE_SELECT_PIN C15
+
+# define CKBT51_RESET_PIN A9
# define CKBT51_INT_INPUT_PIN A5
# define BLUETOOTH_INT_INPUT_PIN A6
diff --git a/keyboards/keychron/q1_pro/q1_pro.c b/keyboards/keychron/q1_pro/q1_pro.c
index 7508b200e1..a83953fdbd 100644
--- a/keyboards/keychron/q1_pro/q1_pro.c
+++ b/keyboards/keychron/q1_pro/q1_pro.c
@@ -35,8 +35,8 @@ typedef struct PACKED {
} key_combination_t;
static uint32_t factory_timer_buffer = 0;
-static uint32_t siri_timer_buffer = 0;
-static uint8_t mac_keycode[4] = {KC_LOPT, KC_ROPT, KC_LCMD, KC_RCMD};
+static uint32_t siri_timer_buffer = 0;
+static uint8_t mac_keycode[4] = {KC_LOPT, KC_ROPT, KC_LCMD, KC_RCMD};
key_combination_t key_comb_list[4] = {
{2, {KC_LWIN, KC_TAB}}, // Task (win)
@@ -130,8 +130,8 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
return true;
}
-#if defined(KC_BLUETOOTH_ENABLE) && defined(ENCODER_ENABLE)
-static void encoder_pad_cb(void *param) {
+#if defined(ENCODER_ENABLE)
+static void encoder0_pad_cb(void *param) {
encoder_inerrupt_read((uint32_t)param & 0XFF);
}
#endif
@@ -176,7 +176,7 @@ void keyboard_post_init_kb(void) {
palEnableLineEvent(encoders_pad_b[0], PAL_EVENT_MODE_BOTH_EDGES);
palSetLineCallback(encoders_pad_a[0], encoder0_pad_cb, NULL);
palSetLineCallback(encoders_pad_b[0], encoder0_pad_cb, NULL);
-#endif
+# endif
#endif
keyboard_post_init_user();
diff --git a/keyboards/keychron/q1_pro/rules.mk b/keyboards/keychron/q1_pro/rules.mk
index 8e536fc345..f995372f9c 100644
--- a/keyboards/keychron/q1_pro/rules.mk
+++ b/keyboards/keychron/q1_pro/rules.mk
@@ -2,8 +2,5 @@
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
OPT_DEFS += -DNO_USB_STARTUP_CHECK -DENABLE_FACTORY_TEST
-SRC += matrix.c
-
include keyboards/keychron/bluetooth/bluetooth.mk
-
-
+include keyboards/keychron/common/common.mk