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 some use of keymap.h #20006

Merged
merged 1 commit into from
Mar 3, 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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion keyboards/capsunlocked/cu75/cu75.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include <avr/timer_avr.h>
#include <avr/wdt.h>
#include "cu75.h"
#include "keymap.h"
#include "debug.h"
#include "../lfkeyboards/issi.h"
#include "../lfkeyboards/TWIlib.h"
Expand Down
3 changes: 2 additions & 1 deletion keyboards/gboards/butterstick/sten.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
//
// Amen.

#pragma once

#include QMK_KEYBOARD_H
#include "mousekey.h"
#include "keymap.h"
#include "keymap_steno.h"
#include "wait.h"

Expand Down
3 changes: 1 addition & 2 deletions keyboards/gboards/engine/engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
crap is removed where possible
*/

#include QMK_KEYBOARD_H
#pragma once
#include "keymap.h"
#include QMK_KEYBOARD_H
#include <string.h>
#include <stdint.h>
#include <stdio.h>
Expand Down
4 changes: 2 additions & 2 deletions keyboards/gboards/g/engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
crap is removed where possible
*/

#include QMK_KEYBOARD_H
#pragma once
#include "keymap.h"

#include QMK_KEYBOARD_H
#include <string.h>
#include <stdint.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion keyboards/gboards/georgi/sten.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// the slave and the master. Until we return from main.
//
// Amen.
#pragma once

#include QMK_KEYBOARD_H
#include "mousekey.h"
#include "keymap.h"
#include "keymap_steno.h"
#include "wait.h"

Expand Down
7 changes: 0 additions & 7 deletions keyboards/handwired/arrow_pad/arrow_pad.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
#pragma once

#include "quantum.h"
#include "matrix.h"
#include "keymap.h"
#ifdef BACKLIGHT_ENABLE
#include "backlight.h"
#endif
#include <avr/io.h>
#include <stddef.h>

#define XXX KC_NO

Expand Down
1 change: 0 additions & 1 deletion keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include <avr/timer_avr.h>
#include <avr/wdt.h>
#include "lfk65_hs.h"
#include "keymap.h"

bool process_record_kb(uint16_t keycode, keyrecord_t* record)
{
Expand Down
1 change: 0 additions & 1 deletion keyboards/lfkeyboards/lfk87/lfk87.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include <avr/timer_avr.h>
#include <avr/wdt.h>
#include "lfk87.h"
#include "keymap.h"
#include "issi.h"
#include "TWIlib.h"
#include "lighting.h"
Expand Down
1 change: 0 additions & 1 deletion keyboards/lfkeyboards/mini1800/mini1800.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include <avr/timer_avr.h>
#include <avr/wdt.h>
#include "mini1800.h"
#include "keymap.h"
#include "issi.h"
#include "TWIlib.h"
#include "lighting.h"
Expand Down
1 change: 0 additions & 1 deletion keyboards/lfkeyboards/smk65/revb/revb.c
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/>.
#include <avr/timer_avr.h>
#include <avr/wdt.h>
#include "smk65.h"
#include "keymap.h"
#include "debug.h"
#include "issi.h"
#include "TWIlib.h"
Expand Down
2 changes: 1 addition & 1 deletion quantum/bootmagic/magic.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "matrix.h"
#include "bootloader.h"
#include "debug.h"
#include "keymap.h"
#include "keycode_config.h"
#include "host.h"
#include "action_layer.h"
#include "eeconfig.h"
Expand Down
1 change: 0 additions & 1 deletion quantum/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "wait.h"
#include "keycode.h"
#include "host.h"
#include "keymap.h"
#include "print.h"
#include "debug.h"
#include "util.h"
Expand Down
2 changes: 1 addition & 1 deletion quantum/dynamic_keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "keymap.h" // to get keymaps[][][]
#include "keymap_introspection.h" // to get keymaps[][][]
#include "eeprom.h"
#include "progmem.h" // to read default from flash
#include "quantum.h" // for send_string()
Expand Down
2 changes: 2 additions & 0 deletions quantum/keymap_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@

#pragma once

#include <stdint.h>

// translates key to keycode
uint16_t keymap_key_to_keycode(uint8_t layer, keypos_t key);
1 change: 1 addition & 0 deletions quantum/keymap_introspection.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#pragma once

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Key mapping
Expand Down
1 change: 0 additions & 1 deletion tests/test_common/test_fixture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ extern "C" {
#include "debug.h"
#include "eeconfig.h"
#include "keyboard.h"
#include "keymap.h"

void set_time(uint32_t t);
void advance_time(uint32_t ms);
Expand Down