Skip to content

Commit

Permalink
Durgod keyboard refactor in preparation for adding additional durgod …
Browse files Browse the repository at this point in the history
…keyboards

* Moving Durgod board configuration into a common location
* Reformatting layout macro whitespace
* Moving TGUI key functionality to the keyboard level
* Replacing default keymap.c with keymap.json
* Changing default and default_toggle_mac_windows keymaps to LAYOUT_all
* Increasing EEPROM size to support more VIA layers
* Fixing media keys; KC_MRWD/KC_MFFD => KC_MPRV/KC_NXT
  • Loading branch information
dkjer committed Feb 25, 2021
1 parent 316dcf4 commit 762a6ab
Show file tree
Hide file tree
Showing 28 changed files with 500 additions and 1,272 deletions.
File renamed without changes.
12 changes: 12 additions & 0 deletions keyboards/durgod/boards/DURGOD_STM32_F070/board.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# List of all the board related files.
BOARDSRC = $(CHIBIOS)/os/hal/boards/ST_NUCLEO64_F070RB/board.c

# Required include directories
BOARDINC = $(CHIBIOS)/os/hal/boards/ST_NUCLEO64_F070RB

# Include mcu configuration
EXTRAINCDIRS = $(BOARD_PATH)/boards/DURGOD_STM32_F070

# Shared variables
ALLCSRC += $(BOARDSRC)
ALLINC += $(BOARDINC)
File renamed without changes.
File renamed without changes.
File renamed without changes.
36 changes: 20 additions & 16 deletions keyboards/durgod/k320/config.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
/*
Copyright 2021 kuenhlee and Don Kjer
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 2 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 <http://www.gnu.org/licenses/>.
*/
/* Copyright 2021 kuenhlee and Don Kjer
*
* 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 2 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 <http://www.gnu.org/licenses/>.
*/

#pragma once

Expand All @@ -36,6 +35,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION ROW2COL

// Dynamic EEPROM
// Something sensible or else VIA may crash
// Users may enable more if they wish
#define DYNAMIC_KEYMAP_EEPROM_MAX_ADDR 4095

/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 7

Expand Down

0 comments on commit 762a6ab

Please sign in to comment.