Skip to content

Commit

Permalink
Remove usages of config_common.h from config.h files. (qmk#19714)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc committed Jan 30, 2023
1 parent 2d84308 commit f6dd8de
Show file tree
Hide file tree
Showing 2,368 changed files with 11 additions and 2,377 deletions.
9 changes: 2 additions & 7 deletions docs/config_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,7 @@ This level contains all of the options for that particular keymap. If you wish t

# The `config.h` File

This is a C header file that is one of the first things included, and will persist over the whole project (if included). Lots of variables can be set here and accessed elsewhere. The `config.h` file shouldn't be including other `config.h` files, or anything besides this:

```c
#include "config_common.h"
```

This is a C header file that is one of the first things included, and will persist over the whole project (if included). Lots of variables can be set here and accessed elsewhere. The `config.h` file shouldn't be including other `config.h` files.

## Hardware Options
* `#define VENDOR_ID 0x1234`
Expand Down Expand Up @@ -329,7 +324,7 @@ There are a few different ways to set handedness for split keyboards (listed in

* `#define SPLIT_USB_TIMEOUT_POLL 10`
* Poll frequency when detecting master/slave when using `SPLIT_USB_DETECT`

* `#define SPLIT_WATCHDOG_ENABLE`
* Reboot slave if no communication from master within timeout.
* Helps resolve issue where both sides detect as slave using `SPLIT_USB_DETECT`
Expand Down
1 change: 1 addition & 0 deletions drivers/sensors/adns5050.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#pragma once

#include <stdbool.h>
#include <stdint.h>

// CPI values
// clang-format off
Expand Down
1 change: 0 additions & 1 deletion keyboards/0_sixty/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#pragma once

#include "config_common.h"

/* key matrix size */
// Rows are doubled-up
Expand Down
1 change: 0 additions & 1 deletion keyboards/0_sixty/underglow/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#pragma once

#include "config_common.h"

/* underglow */
#define RGB_DI_PIN B6
Expand Down
1 change: 0 additions & 1 deletion keyboards/0xc7/61key/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 5
Expand Down
1 change: 0 additions & 1 deletion keyboards/0xcb/1337/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.
*/
#pragma once

#include "config_common.h"
// clang-format off

/* key matrix size */
Expand Down
1 change: 0 additions & 1 deletion keyboards/0xcb/static/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.
*/
#pragma once

#include "config_common.h"
// clang-format off

/* key matrix size */
Expand Down
1 change: 0 additions & 1 deletion keyboards/0xcb/tutelpad/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 2
Expand Down
1 change: 0 additions & 1 deletion keyboards/10bleoledhub/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.*/

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 4
Expand Down
1 change: 0 additions & 1 deletion keyboards/1k/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
#pragma once

#include "config_common.h"

/* matrix size */
#define MATRIX_ROWS 1
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/1up60hse/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 5
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/1up60hte/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 5
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/1up60rgb/config.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 5
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/pi40/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#pragma once

#include "config_common.h"

#define DYNAMIC_KEYMAP_LAYER_COUNT 10

Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/pi60_hse/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#pragma once

#include "config_common.h"

#define DYNAMIC_KEYMAP_LAYER_COUNT 10
#define RGB_DI_PIN GP15
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/pi60_rgb/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#pragma once

#include "config_common.h"

#define RGB_DI_PIN GP19
#define RGB_MATRIX_LED_COUNT 61
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/super16/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 4
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/super16v2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 4
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/sweet16/config.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 4
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/sweet16/v1/config.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include "config_common.h"

/* key matrix pins */
#define MATRIX_ROW_PINS { F4, F5, F6, F7 }
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/sweet16v2/kb2040/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#pragma once

#include "config_common.h"

#define DYNAMIC_KEYMAP_LAYER_COUNT 10
#define RGB_DI_PIN GP6
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/sweet16v2/pro_micro/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#pragma once

#include "config_common.h"

#define DYNAMIC_KEYMAP_LAYER_COUNT 10

Expand Down
1 change: 0 additions & 1 deletion keyboards/25keys/aleth42/rev0/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 4
Expand Down
1 change: 0 additions & 1 deletion keyboards/25keys/aleth42/rev1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 4
Expand Down
1 change: 0 additions & 1 deletion keyboards/25keys/cassette42/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 1
Expand Down
1 change: 0 additions & 1 deletion keyboards/25keys/zinc/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#pragma once

#include "config_common.h"
1 change: 0 additions & 1 deletion keyboards/2key2crawl/config.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 2
Expand Down
1 change: 0 additions & 1 deletion keyboards/30wer/config.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 3
Expand Down
1 change: 0 additions & 1 deletion keyboards/3keyecosystem/2key2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.
*/
#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 1
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/25/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#pragma once

#include "config_common.h"

/* serial.c configuration for split keyboard */
#define SOFT_SERIAL_PIN D0
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/4pack/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 1
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/4x4/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 4
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/5x5/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 5
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/6lit/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#pragma once

#include "config_common.h"

/* serial.c configuration for split keyboard */
#define SOFT_SERIAL_PIN D0
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/foobar/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#pragma once

#include "config_common.h"

/* serial.c configuration for split keyboard */
#define SOFT_SERIAL_PIN D0
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/gherkin/config.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 5
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/half_n_half/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 4*2
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/i75/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#pragma once

#include "config_common.h"

/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 5
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/i75/promicro/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 9
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/i75/teensy2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 9
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/luddite/config.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 8
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/mf68/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 8
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/mf68/keymaps/mf68_ble/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#pragma once

#include "config_common.h"

/* Overrides for Feather 32u4 Bluefruit */

Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/nano/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 2
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/nein/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 3
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/nori/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 4
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/polyandry/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#pragma once

#include "config_common.h"

/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 5
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/polyandry/promicro/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 1
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/polyandry/teensy2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 1
Expand Down
Loading

0 comments on commit f6dd8de

Please sign in to comment.