Skip to content

Commit

Permalink
[Keyboard] Add Durgod Taurus K310 keyboard (#12314)
Browse files Browse the repository at this point in the history
Co-authored-by: Tyler Tidman <[email protected]>
Co-authored-by: Simon Arlott <sa.me.uk>
  • Loading branch information
dkjer and tylert authored Jul 22, 2021
1 parent 931bf52 commit 13a5149
Show file tree
Hide file tree
Showing 52 changed files with 1,945 additions and 642 deletions.
6 changes: 6 additions & 0 deletions keyboards/durgod/k310/base/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Taurus K310

Base Model - no backlight leds

See: [K310](../../k3x0/k310/base/readme.md)

1 change: 1 addition & 0 deletions keyboards/durgod/k310/base/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DEFAULT_FOLDER=durgod/k3x0/k310/base
4 changes: 4 additions & 0 deletions keyboards/durgod/k310/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# K310

See: [K310](../k3x0/k310/readme.md)

1 change: 1 addition & 0 deletions keyboards/durgod/k310/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DEFAULT_FOLDER=durgod/k3x0/k310
6 changes: 6 additions & 0 deletions keyboards/durgod/k320/base/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Taurus K320

Base Model - no backlight leds

See: [K320](../../k3x0/k320/base/readme.md)

1 change: 1 addition & 0 deletions keyboards/durgod/k320/base/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DEFAULT_FOLDER=durgod/k3x0/k320/base
26 changes: 0 additions & 26 deletions keyboards/durgod/k320/keymaps/default/keymap.json

This file was deleted.

367 changes: 0 additions & 367 deletions keyboards/durgod/k320/keymaps/default_toggle_mac_windows/keymap.c

This file was deleted.

90 changes: 0 additions & 90 deletions keyboards/durgod/k320/keymaps/via/keymap.c

This file was deleted.

12 changes: 0 additions & 12 deletions keyboards/durgod/k320/keymaps/via/readme.md

This file was deleted.

4 changes: 0 additions & 4 deletions keyboards/durgod/k320/keymaps/via/rules.mk

This file was deleted.

55 changes: 1 addition & 54 deletions keyboards/durgod/k320/readme.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,4 @@
# K320

This is a standard off-the-shelf Durgod Taurus K320 TKL (87/88-key) keyboard without backlight.
See: [K320](../k3x0/k320/readme.md)

* Keyboard Maintainer: [dkjer](https://github.com/dkjer)
* Hardware Supported: Durgod Taurus K320 board with STM32F070RBT6
* Hardware Availability: https://www.durgod.com/page9?product_id=47&_l=en

## Instructions

### Build

Make command example for this keyboard (after setting up your build environment):

make durgod/k320:default

Flashing example for this keyboard:

make durgod/k320:default:flash

See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).

### Initial Flash

For first Flashing from initial Stock's Firmware

1. Back up original Firmware Image:
- Unplug
- Short Boot0 to Vdd (See below)
- Plug In USB
- Make a Flash Image's Backup in case you wanted to restore the Keyboard to Stock's Image:
- Using DFUseDemo.exe from ST's STSW-STM32080: https://www.st.com/en/development-tools/stsw-stm32080.html
- Using dfu-util:

dfu-util --list
dfu-util --alt 0 --dfuse-address 0x08000000 --upload ${OLD_STOCK_BIN}

2. Flash the QMK Firmware Image.
- Put board into Bootloader mode, using the same method as when backing up the original Firmware (above)
- Here are a few options for performing the initial Flash:
- Using [QMK Toolbox](https://github.com/qmk/qmk_toolbox)
- Using DFuseDemo.exe if STTub30 driver is used.
- Using dfu-util:

dfu-util --alt 0 --dfuse-address 0x08000000 --download ${NEW_QMK_BIN}

You can short Boot0 to Vdd by shorting R21 to C27 on the sides closest to the processor, as shown:

<img src="https://i.imgur.com/hvDnw5a.jpg" width="520" height="693" alt="Shorting Boot0 to Vdd on K320">

### Subsequent Flashing

For repeating Flashing you can use BootMagic:
- BootMagic Lite has been enabled with Assigned "Esc" key
- Unplug USB Cable
- Holding Esc Button
- Plug in USB Cable, Keyboard should be in ST-Bootloader state
30 changes: 1 addition & 29 deletions keyboards/durgod/k320/rules.mk
Original file line number Diff line number Diff line change
@@ -1,29 +1 @@
# MCU name
# Actually F070, but close enough
MCU = STM32F072
BOARD = DURGOD_STM32_F070

# Bootloader selection
BOOTLOADER = stm32-dfu

# Do not put the microcontroller into power saving mode
OPT_DEFS += -DNO_SUSPEND_POWER_DOWN

# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
MOUSEKEY_ENABLE = no # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
NKRO_ENABLE = yes # USB Nkey Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
BLUETOOTH_ENABLE = no # Enable Bluetooth
AUDIO_ENABLE = no # Audio output

LAYOUTS = tkl_ansi tkl_iso
DEFAULT_FOLDER=durgod/k3x0/k320
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* Copyright 2021 kuenhlee and Don Kjer
/* Copyright 2021 kuenhlee, Don Kjer, Tyler Tidman
* Copyright 2021 Simon Arlott
*
* 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
Expand All @@ -20,16 +21,11 @@

/* USB Device descriptor parameter */
#define VENDOR_ID 0xD60D
#define PRODUCT_ID 0x3200
#define DEVICE_VER 0x0001
#define MANUFACTURER Hoksi Technology
#define PRODUCT DURGOD Taurus K320 (QMK)

/* key matrix size */
#define MATRIX_ROWS 7
/* key matrix size (rows in specific keyboard variant) */
#define MATRIX_COLS 16

#define MATRIX_ROW_PINS { A0, A1, A2, A3, A4, A5, A6 }
#define MATRIX_COL_PINS { C4, C5, B0, B1, B2, B10, B11, B12, B13, B14, B15, C6, C7, C10, C11, C12 }

/* COL2ROW, ROW2COL*/
Expand All @@ -42,6 +38,7 @@

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

/* Bootmagic Lite key configuration */
#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
Expand All @@ -54,3 +51,6 @@
#define LED_WIN_LOCK_PIN A9
#define LED_MR_LOCK_PIN A10
#define LED_PIN_ON_STATE 0

/* Original hardware "reset" button on pin D2 */
#define HARDWARE_RESET_PIN D2
22 changes: 22 additions & 0 deletions keyboards/durgod/k3x0/halconf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* Copyright 2021 Simon Arlott
*
* 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

#define HAL_USE_PAL TRUE
#define PAL_USE_CALLBACKS TRUE

#include_next <halconf.h>
23 changes: 23 additions & 0 deletions keyboards/durgod/k3x0/k310/base/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* Copyright 2021 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

#include "config_common.h"

/* USB Device descriptor parameter */
#define PRODUCT DURGOD Taurus K310 (QMK)
#define DEVICE_VER 0x0001 // Base (no backlight)
27 changes: 27 additions & 0 deletions keyboards/durgod/k3x0/k310/base/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# K310

This is a standard off-the-shelf Durgod Taurus K310 full-sized 104/105-key
keyboard without backlight. This supports both the ANSI and ISO variants.

* Keyboard Maintainers: [dkjer](https://github.com/dkjer) and [tylert](https://github.com/tylert)
* Hardware Supported: Durgod Taurus K310 board with STM32F070RBT6
* Hardware Availability: K310 https://www.durgod.com/page9?product_id=53&_l=en

## Instructions

### Build

Make command example for this keyboard (after setting up your build environment):

make durgod/k310:default

Flashing example for this keyboard:

make durgod/k310:default:flash

See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).

### Initial Flash

Instructions for Flashing from initial Stock Firmware:
* [Initial Flashing](../../readme.md#initial-flash)
1 change: 1 addition & 0 deletions keyboards/durgod/k3x0/k310/base/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# see common rules.mk
Loading

0 comments on commit 13a5149

Please sign in to comment.