Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove usages of config_common.h from config.h files. #19714

Merged
merged 6 commits into from
Jan 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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://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://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://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://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://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://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://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://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://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://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://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://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://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://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://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://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://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://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