From 3be5d90b6d1c4534bcfce9725808e8c4d469a845 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Fri, 3 Mar 2023 17:50:40 +0000 Subject: Remove some use of keymap.h (#20006) --- quantum/bootmagic/magic.c | 2 +- quantum/command.c | 1 - quantum/dynamic_keymap.c | 2 +- quantum/keymap_common.h | 2 ++ quantum/keymap_introspection.h | 1 + 5 files changed, 5 insertions(+), 3 deletions(-) (limited to 'quantum') diff --git a/quantum/bootmagic/magic.c b/quantum/bootmagic/magic.c index f1cb11c395..d68df3fa58 100644 --- a/quantum/bootmagic/magic.c +++ b/quantum/bootmagic/magic.c @@ -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" diff --git a/quantum/command.c b/quantum/command.c index 84757b9b01..aa64b75064 100644 --- a/quantum/command.c +++ b/quantum/command.c @@ -19,7 +19,6 @@ along with this program. If not, see . #include "wait.h" #include "keycode.h" #include "host.h" -#include "keymap.h" #include "print.h" #include "debug.h" #include "util.h" diff --git a/quantum/dynamic_keymap.c b/quantum/dynamic_keymap.c index c406be4585..90a0f20838 100644 --- a/quantum/dynamic_keymap.c +++ b/quantum/dynamic_keymap.c @@ -14,7 +14,7 @@ * along with this program. If not, see . */ -#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() diff --git a/quantum/keymap_common.h b/quantum/keymap_common.h index 24fe9af6fe..20e70263f3 100644 --- a/quantum/keymap_common.h +++ b/quantum/keymap_common.h @@ -3,5 +3,7 @@ #pragma once +#include + // translates key to keycode uint16_t keymap_key_to_keycode(uint8_t layer, keypos_t key); diff --git a/quantum/keymap_introspection.h b/quantum/keymap_introspection.h index a8df3928a6..201de937cb 100644 --- a/quantum/keymap_introspection.h +++ b/quantum/keymap_introspection.h @@ -3,6 +3,7 @@ #pragma once #include +#include //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Key mapping -- cgit v1.2.3