From 6de71c63cd31383ed6e9470c36c2430e61255d47 Mon Sep 17 00:00:00 2001 From: Dave Date: Mon, 28 Feb 2022 20:03:44 -0600 Subject: [PATCH] Add missing asdf_keymap_apple2_caps.h file --- .../src/Keymaps/asdf_keymap_apple2_caps.h | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 firmware/asdf/src/Keymaps/asdf_keymap_apple2_caps.h diff --git a/firmware/asdf/src/Keymaps/asdf_keymap_apple2_caps.h b/firmware/asdf/src/Keymaps/asdf_keymap_apple2_caps.h new file mode 100644 index 0000000..0d04bbc --- /dev/null +++ b/firmware/asdf/src/Keymaps/asdf_keymap_apple2_caps.h @@ -0,0 +1,51 @@ +// -*- mode: C; tab-width: 4 ; indent-tabs-mode: nil -*- +// +// Unfified Keyboard Project +// ASDF keyboard firmware +// +// asdf_keymap_apple2_caps.h +// +// Apple 2 keymaps +// +// Copyright 2019 David Fenyes +// +// This program is free software: you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation, either version 3 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program. If not, see . + + +// This file supplies the Apple 2 ASCII keyboard keymap. Two variants are provided: +// +// 1) An Upper/Lowercase variant. This variant moves the @ and ^ symbols from +// the P and N keys to the REPEAT key, since the P and N keys need to reserve +// the shifted value for the uppercase characters. Also, the "Power" key +// doubles as a caps-lock key. +// +// 2) A CAPS only keyboard, following the standard Apple II conventions and +// layout, with ^ above the N key and @ above the P key, and a functioning +// REPEAT key. +// +// For both variants, CTRL+RESET is required for a system reset. + +#if !defined(ASDF_KEYMAP_DEFS_APPLE2_CAPS_H) +#define ASDF_KEYMAP_DEFS_APPLE2_CAPS_H + +#define APPLESOFT_KEYBOARD_TEST ASDF_HOOK_USER_9 +#define APPLE2_CAPS_ID_MESSAGE ASDF_HOOK_USER_10 + +#define APPLE2_PRINT_DELAY 40 // msec + + +#endif /* !defined (ASDF_KEYMAP_DEFS_APPLE2_CAPS_H) */ + +//-------|---------|---------+---------+---------+---------+---------+---------+ +// Above line is 80 columns, and should display completely in the editor.