2022-12-15 19:14:50 -08:00
|
|
|
// Copyright 2022 Framework Computer
|
2022-12-15 19:10:32 -08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "quantum.h"
|
|
|
|
|
2023-03-22 22:25:02 -07:00
|
|
|
#ifdef KEYBOARD_framework_ansi
|
2022-12-29 06:35:36 -08:00
|
|
|
#include "ansi.h"
|
2023-03-22 22:25:02 -07:00
|
|
|
#elif KEYBOARD_framework_iso
|
2022-12-29 06:35:36 -08:00
|
|
|
#include "iso.h"
|
2023-03-22 22:25:02 -07:00
|
|
|
#elif KEYBOARD_framework_jis
|
2022-12-29 06:35:36 -08:00
|
|
|
#include "jis.h"
|
2023-03-22 22:25:02 -07:00
|
|
|
#elif KEYBOARD_framework_numpad
|
2022-12-29 06:35:36 -08:00
|
|
|
#include "numpad.h"
|
2023-07-10 13:35:45 -07:00
|
|
|
#elif KEYBOARD_framework_macropad
|
|
|
|
#include "macropad.h"
|
2022-12-29 06:35:36 -08:00
|
|
|
#endif
|
|
|
|
|
2023-03-22 22:25:02 -07:00
|
|
|
enum framework_keycodes {
|
2022-12-27 16:41:18 -08:00
|
|
|
// Custom keycode to change screen modes (e.g. enable external screen)
|
|
|
|
KC_SCRN = SAFE_RANGE,
|
2023-05-03 02:16:18 -07:00
|
|
|
FN_LOCK,
|
2022-12-27 16:41:18 -08:00
|
|
|
};
|
2023-01-07 06:17:19 -08:00
|
|
|
|
2023-07-16 22:03:14 -07:00
|
|
|
extern bool bios_mode;
|
|
|
|
|
2023-11-29 17:09:33 -08:00
|
|
|
// Uncomment this to show hotkey mode with capslock LED and backlight
|
|
|
|
// hotkey mode on: capslock ON, RGB red
|
|
|
|
// hotkey mode off: capslock OFF, RGB white
|
|
|
|
//#define BIOS_HOTKEY_DEBUG
|
|
|
|
void set_bios_mode(bool val);
|
|
|
|
|
2023-01-07 06:17:19 -08:00
|
|
|
#define SLEEP_GPIO GP0
|
|
|
|
#define MUX_ENABLE_GPIO GP4
|
|
|
|
#define BOOT_DONE_GPIO GP5
|
|
|
|
// Pin SDB to enable the RGB controller
|
2023-03-22 20:51:08 -07:00
|
|
|
#ifdef PICO_FL16
|
2023-01-07 06:17:19 -08:00
|
|
|
// 22 only on RPi Pico because it doesn't have GP29
|
|
|
|
#define IS31FL3743A_ENABLE_GPIO GP22
|
|
|
|
#else
|
|
|
|
#define IS31FL3743A_ENABLE_GPIO GP29
|
|
|
|
#endif
|