aboutsummaryrefslogtreecommitdiff
path: root/quantum/keymap.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/keymap.h')
-rw-r--r--quantum/keymap.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/quantum/keymap.h b/quantum/keymap.h
index a994f4f2e..73f99f821 100644
--- a/quantum/keymap.h
+++ b/quantum/keymap.h
@@ -21,7 +21,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
21#include <stdint.h> 21#include <stdint.h>
22#include <stdbool.h> 22#include <stdbool.h>
23#include "action.h" 23#include "action.h"
24#if defined(__AVR__)
24#include <avr/pgmspace.h> 25#include <avr/pgmspace.h>
26#endif
25#include "keycode.h" 27#include "keycode.h"
26#include "action_macro.h" 28#include "action_macro.h"
27#include "report.h" 29#include "report.h"
@@ -30,12 +32,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
30#include "debug.h" 32#include "debug.h"
31#include "keycode_config.h" 33#include "keycode_config.h"
32 34
35// ChibiOS uses RESET in its FlagStatus enumeration
36// Therefore define it as QK_RESET here, to avoid name collision
37#if defined(PROTOCOL_CHIBIOS)
38#define RESET QK_RESET
39#endif
40
33/* translates key to keycode */ 41/* translates key to keycode */
34uint16_t keymap_key_to_keycode(uint8_t layer, keypos_t key); 42uint16_t keymap_key_to_keycode(uint8_t layer, keypos_t key);
35 43
36/* translates Fn keycode to action */
37action_t keymap_fn_to_action(uint16_t keycode);
38
39extern const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS]; 44extern const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS];
40extern const uint16_t fn_actions[]; 45extern const uint16_t fn_actions[];
41 46