48 lines
1.9 KiB
C
48 lines
1.9 KiB
C
// -*- mode: C; tab-width: 4 ; indent-tabs-mode: nil -*-
|
|
//
|
|
// Unfified Keyboard Project
|
|
// ASDF keyboard firmware
|
|
//
|
|
// asdf_keymap_defs_dipswitch.h
|
|
//
|
|
// Contains defitions for DIP switch settings shared by all 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 <https://www.gnu.org/licenses/>.
|
|
//
|
|
|
|
#if !defined (DEPS_DIPSWITCH_H)
|
|
#define DEPS_DIPSWITCH_H
|
|
|
|
#define ASDF_KEYMAP_DIP_SWITCHES \
|
|
[ASDF_ARCH_DIPSWITCH_ROW][0] = {asdf_map_select_set, asdf_map_select_clear, 0}, \
|
|
[ASDF_ARCH_DIPSWITCH_ROW][1] = {asdf_map_select_set, asdf_map_select_clear, 1}, \
|
|
[ASDF_ARCH_DIPSWITCH_ROW][2] = {asdf_map_select_set, asdf_map_select_clear, 2}, \
|
|
[ASDF_ARCH_DIPSWITCH_ROW][3] = {asdf_map_select_set, asdf_map_select_clear, 3}, \
|
|
[ASDF_ARCH_DIPSWITCH_ROW][4] = {no_action, no_action, 0}, \
|
|
[ASDF_ARCH_DIPSWITCH_ROW][5] = {asdf_hook_execute, no_action, ACTION_FN_11}, \
|
|
[ASDF_ARCH_DIPSWITCH_ROW][6] = {asdf_arch_set_pos_strobe, asdf_arch_set_net_strobe, 0}, \
|
|
[ASDF_ARCH_DIPSWITCH_ROW][7] = {asdf_repeat_auto_on, asdf_repeat_auto_off, 0},
|
|
|
|
|
|
//
|
|
// Device and peripheral definitions, comments should include use of devices.
|
|
// Please
|
|
//
|
|
|
|
#endif /* !defined (DEPS_DIPSWITCH_H) */
|
|
|
|
//-------|---------|---------+---------+---------+---------+---------+---------+
|
|
// Above line is 80 columns, and should display completely in the editor.
|