move OPT_DEFS += -DKC_BLUETOOTH_ENABLE to bluetooth.mk

This commit is contained in:
lokher 2023-06-13 10:58:50 +08:00
parent b9a3e3dd3c
commit 5856c95340
29 changed files with 57 additions and 54 deletions

View File

@ -1,3 +1,6 @@
OPT_DEFS += -DKC_BLUETOOTH_ENABLE
BLUETOOTH_DIR = bluetooth
SRC += \
$(BLUETOOTH_DIR)/bluetooth.c \

View File

@ -24,7 +24,8 @@
"matrix_pins": {
"rows": ["B5", "B4", "B3", "A15", "A14", "A13"],
"cols": ["B0", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null],
"custom_lite": true
"custom": true,
"custom_lite": true
},
"layouts": {
"LAYOUT_ansi_108": {
@ -263,4 +264,4 @@
]
}
}
}
}

View File

@ -1,7 +1,6 @@
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
OPT_DEFS += -DNO_USB_STARTUP_CHECK -DENABLE_FACTORY_TEST
OPT_DEFS += -DKC_BLUETOOTH_ENABLE
SRC += matrix.c

View File

@ -24,7 +24,8 @@
"matrix_pins": {
"rows": ["B5", "B4", "B3", "A15", "A14", "A13"],
"cols": ["C15", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null],
"custom_lite": true
"custom": true,
"custom_lite": true
},
"layouts": {
"LAYOUT_ansi_90": {
@ -122,4 +123,4 @@
]
}
}
}
}

View File

@ -1,7 +1,6 @@
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
OPT_DEFS += -DNO_USB_STARTUP_CHECK -DENABLE_FACTORY_TEST
OPT_DEFS += -DKC_BLUETOOTH_ENABLE
SRC += matrix.c

View File

@ -24,7 +24,8 @@
"matrix_pins": {
"rows": ["B5", "B4", "B3", "A15", "A14", "A13"],
"cols": ["C15", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null],
"custom_lite": true
"custom": true,
"custom_lite": true
},
"layouts": {
"LAYOUT_tkl_ansi": {
@ -124,4 +125,4 @@
]
}
}
}
}

View File

@ -1,7 +1,6 @@
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
OPT_DEFS += -DNO_USB_STARTUP_CHECK -DENABLE_FACTORY_TEST
OPT_DEFS += -DKC_BLUETOOTH_ENABLE
SRC += matrix.c

View File

@ -24,7 +24,8 @@
"matrix_pins": {
"rows": ["B5", "B4", "B3", "A15", "A14", "A13"],
"cols": ["B0", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null],
"custom_lite": true
"custom": true,
"custom_lite": true
},
"layouts": {
"LAYOUT_ansi_84": {
@ -311,4 +312,4 @@
]
}
}
}
}

View File

@ -1,7 +1,6 @@
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
OPT_DEFS += -DNO_USB_STARTUP_CHECK -DENABLE_FACTORY_TEST
OPT_DEFS += -DKC_BLUETOOTH_ENABLE
SRC += matrix.c

View File

@ -24,7 +24,8 @@
"matrix_pins": {
"rows": ["B5", "B4", "B3", "A15", "A14", "A13"],
"cols": ["C15", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null],
"custom_lite": true
"custom": true,
"custom_lite": true
},
"layouts": {
"LAYOUT_ansi_84": {
@ -311,4 +312,4 @@
]
}
}
}
}

View File

@ -1,7 +1,6 @@
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
OPT_DEFS += -DNO_USB_STARTUP_CHECK -DENABLE_FACTORY_TEST
OPT_DEFS += -DKC_BLUETOOTH_ENABLE
SRC += matrix.c

View File

@ -24,7 +24,8 @@
"matrix_pins": {
"rows": ["B5", "B4", "B3", "A15", "A14", "A13"],
"cols": ["B0", "A7", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null],
"custom_lite": true
"custom": true,
"custom_lite": true
},
"layouts": {
"LAYOUT_ansi_100": {
@ -247,4 +248,4 @@
]
}
}
}
}

View File

@ -1,7 +1,6 @@
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
OPT_DEFS += -DNO_USB_STARTUP_CHECK -DENABLE_FACTORY_TEST
OPT_DEFS += -DKC_BLUETOOTH_ENABLE
SRC += matrix.c

View File

@ -24,7 +24,8 @@
"matrix_pins": {
"rows": ["B5", "B4", "B3", "A15", "A14", "A13"],
"cols": [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null],
"custom_lite": true
"custom": true,
"custom_lite": true
},
"layouts": {
"LAYOUT_ansi_108": {

View File

@ -1,7 +1,6 @@
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
OPT_DEFS += -DNO_USB_STARTUP_CHECK -DENABLE_FACTORY_TEST
OPT_DEFS += -DKC_BLUETOOTH_ENABLE
SRC += matrix.c

View File

@ -24,7 +24,8 @@
"matrix_pins": {
"rows": ["B4", "B3", "A15", "A14", "A13"],
"cols": [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null],
"custom_lite": true
"custom": true,
"custom_lite": true
},
"layouts": {
"LAYOUT_ansi_68": {
@ -260,4 +261,4 @@
]
}
}
}
}

View File

@ -1,7 +1,6 @@
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
OPT_DEFS += -DNO_USB_STARTUP_CHECK -DENABLE_FACTORY_TEST
OPT_DEFS += -DKC_BLUETOOTH_ENABLE
SRC += matrix.c

View File

@ -24,7 +24,8 @@
"matrix_pins": {
"rows": ["B4", "B3", "A15", "A14", "A13"],
"cols": ["C15", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null],
"custom_lite": true
"custom": true,
"custom_lite": true
},
"layouts": {
"LAYOUT_ansi_68": {
@ -104,4 +105,4 @@
]
}
}
}
}

View File

@ -1,7 +1,6 @@
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
OPT_DEFS += -DNO_USB_STARTUP_CHECK -DENABLE_FACTORY_TEST
OPT_DEFS += -DKC_BLUETOOTH_ENABLE
SRC += matrix.c

View File

@ -24,6 +24,7 @@
"matrix_pins": {
"rows": ["B5", "B4", "B3", "A15", "A14", "A13"],
"cols": ["B0", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null],
"custom": true,
"custom_lite": true
},
"layouts": {

View File

@ -1,7 +1,6 @@
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
OPT_DEFS += -DNO_USB_STARTUP_CHECK -DENABLE_FACTORY_TEST
OPT_DEFS += -DKC_BLUETOOTH_ENABLE
SRC += matrix.c

View File

@ -24,7 +24,8 @@
"matrix_pins": {
"rows": ["B4", "B3", "A15", "A14", "A13"],
"cols": [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null],
"custom_lite": true
"custom": true,
"custom_lite": true
},
"layouts": {
"LAYOUT_ansi_61": {
@ -97,4 +98,4 @@
]
}
}
}
}

View File

@ -1,7 +1,6 @@
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
OPT_DEFS += -DNO_USB_STARTUP_CHECK -DENABLE_FACTORY_TEST
OPT_DEFS += -DKC_BLUETOOTH_ENABLE
SRC += matrix.c

View File

@ -3,11 +3,6 @@
"manufacturer": "Keychron",
"url": "https://github.com/Keychron",
"maintainer": "lokher",
"encoder": {
"rotary": [
{"pin_a": "A10", "pin_b": "A0", "resolution": 4}
]
},
"processor": "STM32L432",
"bootloader": "stm32-dfu",
"usb": {
@ -32,7 +27,13 @@
"matrix_pins": {
"rows": ["B5", "B4", "B3", "A15", "A14", "A13"],
"cols": [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null],
"custom_lite": true
"custom": true,
"custom_lite": true
},
"encoder": {
"rotary": [
{"pin_a": "A10", "pin_b": "A0", "resolution": 4}
]
},
"rgb_matrix": {
"driver": "CKLED2001",
@ -60,4 +61,4 @@
"solid_splash": true
}
}
}
}

View File

@ -1,7 +1,6 @@
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
OPT_DEFS += -DNO_USB_STARTUP_CHECK -DENABLE_FACTORY_TEST
OPT_DEFS += -DKC_BLUETOOTH_ENABLE
SRC += matrix.c

View File

@ -3,11 +3,6 @@
"manufacturer": "Keychron",
"url": "https://github.com/Keychron",
"maintainer": "lokher",
"encoder": {
"rotary": [
{"pin_a": "A10", "pin_b": "A0", "resolution": 4}
]
},
"processor": "STM32L432",
"bootloader": "stm32-dfu",
"usb": {
@ -31,7 +26,13 @@
"matrix_pins": {
"rows": ["B4", "B3", "A15", "A14", "A13"],
"cols": [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null],
"custom_lite": true
"custom": true,
"custom_lite": true
},
"encoder": {
"rotary": [
{"pin_a": "A10", "pin_b": "A0", "resolution": 4}
]
},
"rgb_matrix": {
"driver": "CKLED2001",
@ -59,4 +60,4 @@
"solid_splash": true
}
}
}
}

View File

@ -1,7 +1,6 @@
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
OPT_DEFS += -DNO_USB_STARTUP_CHECK -DENABLE_FACTORY_TEST
OPT_DEFS += -DKC_BLUETOOTH_ENABLE
SRC += matrix.c

View File

@ -3,11 +3,6 @@
"manufacturer": "Keychron",
"url": "https://github.com/Keychron",
"maintainer": "lokher",
"encoder": {
"rotary": [
{"pin_a": "A10", "pin_b": "A0", "resolution": 4}
]
},
"processor": "STM32L432",
"bootloader": "stm32-dfu",
"usb": {
@ -32,7 +27,13 @@
"matrix_pins": {
"rows": ["B5", "B4", "B3", "A15", "A14", "A13"],
"cols": [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null],
"custom_lite": true
"custom": true,
"custom_lite": true
},
"encoder": {
"rotary": [
{"pin_a": "A10", "pin_b": "A0", "resolution": 4}
]
},
"rgb_matrix": {
"driver": "CKLED2001",
@ -60,4 +61,4 @@
"solid_splash": true
}
}
}
}

View File

@ -1,7 +1,6 @@
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
OPT_DEFS += -DNO_USB_STARTUP_CHECK -DENABLE_FACTORY_TEST
OPT_DEFS += -DKC_BLUETOOTH_ENABLE
SRC += matrix.c