diff options
| author | Ryan <fauxpark@gmail.com> | 2023-10-13 17:25:32 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-13 17:25:32 +1100 |
| commit | c157c19b81fbd8b516de0eb5e854d278669cff1a (patch) | |
| tree | c2670f9b71cbe95154126018683345afe5890b2c /keyboards/handwired | |
| parent | f150258e5ab6bf04c2e724389465f7a8ef5759ef (diff) | |
Dedupe I2C, SPI, UART driver inclusions (#22253)
Diffstat (limited to 'keyboards/handwired')
| -rw-r--r-- | keyboards/handwired/dactyl/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/handwired/dqz11n1g/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/handwired/dygma/raise/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/handwired/frenchdev/rules.mk | 4 | ||||
| -rw-r--r-- | keyboards/handwired/lagrange/rules.mk | 3 | ||||
| -rw-r--r-- | keyboards/handwired/onekey/kb2040/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/handwired/onekey/keymaps/i2c_scanner/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/handwired/pterodactyl/rules.mk | 2 |
8 files changed, 9 insertions, 10 deletions
diff --git a/keyboards/handwired/dactyl/rules.mk b/keyboards/handwired/dactyl/rules.mk index 830812f79a..bffd901b04 100644 --- a/keyboards/handwired/dactyl/rules.mk +++ b/keyboards/handwired/dactyl/rules.mk | |||
| @@ -14,5 +14,5 @@ SWAP_HANDS_ENABLE = yes # Allow swapping hands of keyboard | |||
| 14 | RGBLIGHT_ENABLE = no | 14 | RGBLIGHT_ENABLE = no |
| 15 | 15 | ||
| 16 | # project specific files | 16 | # project specific files |
| 17 | QUANTUM_LIB_SRC += i2c_master.c | 17 | I2C_DRIVER_REQUIRED = yes |
| 18 | SRC += matrix.c | 18 | SRC += matrix.c |
diff --git a/keyboards/handwired/dqz11n1g/rules.mk b/keyboards/handwired/dqz11n1g/rules.mk index 23f6b89cc2..220e353ab7 100644 --- a/keyboards/handwired/dqz11n1g/rules.mk +++ b/keyboards/handwired/dqz11n1g/rules.mk | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # Keyboard matrix uses shift-registers read via SPI | 1 | # Keyboard matrix uses shift-registers read via SPI |
| 2 | CUSTOM_MATRIX = lite | 2 | CUSTOM_MATRIX = lite |
| 3 | SRC += matrix.c | 3 | SRC += matrix.c |
| 4 | QUANTUM_LIB_SRC += spi_master.c | 4 | SPI_DRIVER_REQUIRED = yes |
| 5 | 5 | ||
| 6 | # Build Options | 6 | # Build Options |
| 7 | # change yes to no to disable | 7 | # change yes to no to disable |
diff --git a/keyboards/handwired/dygma/raise/rules.mk b/keyboards/handwired/dygma/raise/rules.mk index 761e075500..ecf156629a 100644 --- a/keyboards/handwired/dygma/raise/rules.mk +++ b/keyboards/handwired/dygma/raise/rules.mk | |||
| @@ -19,7 +19,7 @@ CUSTOM_MATRIX = lite | |||
| 19 | # alternate usb endpoints. | 19 | # alternate usb endpoints. |
| 20 | RAW_ENABLE = yes | 20 | RAW_ENABLE = yes |
| 21 | 21 | ||
| 22 | QUANTUM_LIB_SRC += i2c_master.c | 22 | I2C_DRIVER_REQUIRED = yes |
| 23 | SRC += matrix.c | 23 | SRC += matrix.c |
| 24 | 24 | ||
| 25 | DEFAULT_FOLDER = handwired/dygma/raise/ansi | 25 | DEFAULT_FOLDER = handwired/dygma/raise/ansi |
diff --git a/keyboards/handwired/frenchdev/rules.mk b/keyboards/handwired/frenchdev/rules.mk index c310966f1d..e226d0b517 100644 --- a/keyboards/handwired/frenchdev/rules.mk +++ b/keyboards/handwired/frenchdev/rules.mk | |||
| @@ -13,5 +13,5 @@ AUDIO_ENABLE = no # Audio output | |||
| 13 | RGBLIGHT_ENABLE = no | 13 | RGBLIGHT_ENABLE = no |
| 14 | 14 | ||
| 15 | # project specific files | 15 | # project specific files |
| 16 | SRC = i2c_master.c \ | 16 | SRC = matrix.c |
| 17 | matrix.c | 17 | I2C_DRIVER_REQUIRED = yes |
diff --git a/keyboards/handwired/lagrange/rules.mk b/keyboards/handwired/lagrange/rules.mk index 61bfdfa4d3..f4af87851c 100644 --- a/keyboards/handwired/lagrange/rules.mk +++ b/keyboards/handwired/lagrange/rules.mk | |||
| @@ -14,4 +14,5 @@ UNICODE_ENABLE = yes | |||
| 14 | SPLIT_KEYBOARD = yes | 14 | SPLIT_KEYBOARD = yes |
| 15 | SPLIT_TRANSPORT = custom | 15 | SPLIT_TRANSPORT = custom |
| 16 | 16 | ||
| 17 | SRC += transport.c spi_master.c | 17 | SRC += transport.c |
| 18 | SPI_DRIVER_REQUIRED = yes | ||
diff --git a/keyboards/handwired/onekey/kb2040/rules.mk b/keyboards/handwired/onekey/kb2040/rules.mk index 0e5631b02b..dd68e9d3b0 100644 --- a/keyboards/handwired/onekey/kb2040/rules.mk +++ b/keyboards/handwired/onekey/kb2040/rules.mk | |||
| @@ -1,3 +1 @@ | |||
| 1 | OLED_ENABLE = yes | OLED_ENABLE = yes | |
| 2 | |||
| 3 | OPT_DEFS += -DHAL_USE_I2C=TRUE | ||
diff --git a/keyboards/handwired/onekey/keymaps/i2c_scanner/rules.mk b/keyboards/handwired/onekey/keymaps/i2c_scanner/rules.mk index 04498a8831..3dec5cef29 100644 --- a/keyboards/handwired/onekey/keymaps/i2c_scanner/rules.mk +++ b/keyboards/handwired/onekey/keymaps/i2c_scanner/rules.mk | |||
| @@ -1,3 +1,3 @@ | |||
| 1 | CONSOLE_ENABLE = yes | 1 | CONSOLE_ENABLE = yes |
| 2 | 2 | ||
| 3 | QUANTUM_LIB_SRC += i2c_master.c | 3 | I2C_DRIVER_REQUIRED = yes |
diff --git a/keyboards/handwired/pterodactyl/rules.mk b/keyboards/handwired/pterodactyl/rules.mk index 9f0cabc750..108e1498a8 100644 --- a/keyboards/handwired/pterodactyl/rules.mk +++ b/keyboards/handwired/pterodactyl/rules.mk | |||
| @@ -18,4 +18,4 @@ CUSTOM_MATRIX = yes | |||
| 18 | BLUETOOTH_ENABLE = yes | 18 | BLUETOOTH_ENABLE = yes |
| 19 | 19 | ||
| 20 | SRC += matrix.c | 20 | SRC += matrix.c |
| 21 | QUANTUM_LIB_SRC += i2c_master.c | 21 | I2C_DRIVER_REQUIRED = yes |
