Skip to content

Commit

Permalink
Merge remote-tracking branch 'qmk/develop' into develop
Browse files Browse the repository at this point in the history
* qmk/develop: (100 commits)
  [Keyboard] Fix compilation issues for teleport numpad (qmk#15110)
  [Keyboard] Add Paroxysm keyboard to Cradio (qmk#15097)
  [Keyboard] Update mb44.h (qmk#15092)
  [Keyboard] Stream cheap via fixes/updates (qmk#14325)
  [Keyboard] PK64RGB Keyboard Addition (qmk#14627)
  [Keyboard] Element Hotswap PCB (qmk#15082)
  [Keyboard] Teleport numpad (qmk#14905)
  Updates to drashna keymap and minor updates to tractyl manuform (qmk#15101)
  Update noroadsleft userspace and keymaps (2021-11-09) (qmk#15099)
  Mechlovin Pisces Refactor (qmk#15080)
  idb 60 Layout Macro Refactor (qmk#15079)
  [Keyboard] Add new keyboard "Heavy Left" (qmk#15052)
  Fixup broken build after qmk#15040 (qmk#15073)
  [Keyboard] Add VIA to Gud70 (qmk#15071)
  [Keyboard] Fix compilation issues for superuser tkl (qmk#15070)
  [Keyboard] Add Ziggurat keyboard (qmk#15008)
  Update updated KPrepublic boards to be prepared for the update (qmk#15040)
  [Keymap] add keymap for xd60 (qmk#15053)
  [Keymap] Revamp the ergodox french_hacker layout (qmk#15064)
  kprepublic/bm65rgb/rev1: Fix info.json (qmk#15066)
  ...
  • Loading branch information
Carlos Cardoso committed Nov 10, 2021
2 parents a41777e + 3793abe commit 73f70b5
Show file tree
Hide file tree
Showing 2,119 changed files with 23,050 additions and 11,142 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,8 @@ define SET_SILENT_MODE
endif
endef

include $(ROOT_DIR)/message.mk
include paths.mk
include $(BUILDDEFS_PATH)/message.mk

ifeq ($(strip $(BREAK_ON_ERRORS)), yes)
HANDLE_ERROR = exit 1
Expand Down
13 changes: 7 additions & 6 deletions build_keyboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ endif

.DEFAULT_GOAL := all

include common.mk
include paths.mk
include $(BUILDDEFS_PATH)/message.mk

# Set the qmk cli to use
QMK_BIN ?= qmk
Expand Down Expand Up @@ -164,7 +165,7 @@ ifeq ($(strip $(CONVERT_TO_PROTON_C)), yes)
include platforms/chibios/boards/QMK_PROTON_C/convert_to_proton_c.mk
endif

include quantum/mcu_selection.mk
include $(BUILDDEFS_PATH)/mcu_selection.mk

# Find all the C source files to be compiled in subfolders.
KEYBOARD_SRC :=
Expand Down Expand Up @@ -342,7 +343,7 @@ ifneq ("$(wildcard $(USER_PATH)/post_config.h)","")
endif

# Disable features that a keyboard doesn't support
-include disable_features.mk
-include $(BUILDDEFS_PATH)/disable_features.mk

# Pull in post_rules.mk files from all our subfolders
ifneq ("$(wildcard $(KEYBOARD_PATH_1)/post_rules.mk)","")
Expand Down Expand Up @@ -385,10 +386,10 @@ VPATH += $(KEYBOARD_PATHS)
VPATH += $(COMMON_VPATH)

include common_features.mk
include generic_features.mk
include $(BUILDDEFS_PATH)/generic_features.mk
include $(TMK_PATH)/protocol.mk
include $(TMK_PATH)/common.mk
include bootloader.mk
include $(BUILDDEFS_PATH)/bootloader.mk

SRC += $(patsubst %.c,%.clib,$(LIB_SRC))
SRC += $(patsubst %.c,%.clib,$(QUANTUM_LIB_SRC))
Expand Down Expand Up @@ -445,7 +446,7 @@ check-size: build
check-md5: build
objs-size: build

include show_options.mk
include $(BUILDDEFS_PATH)/show_options.mk
include $(TMK_PATH)/rules.mk

# Ensure we have generated files available for each of the objects
Expand Down
6 changes: 4 additions & 2 deletions build_test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ endif

.DEFAULT_GOAL := all

include common.mk
include paths.mk
include $(BUILDDEFS_PATH)/message.mk

TARGET=test/$(TEST)

Expand Down Expand Up @@ -52,8 +53,9 @@ include tests/$(TEST)/rules.mk
endif

include common_features.mk
include generic_features.mk
include $(BUILDDEFS_PATH)/generic_features.mk
include $(TMK_PATH)/common.mk
include $(TMK_PATH)/protocol.mk
include $(QUANTUM_PATH)/debounce/tests/rules.mk
include $(QUANTUM_PATH)/sequencer/tests/rules.mk
include $(TMK_PATH)/common/test/rules.mk
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions generic_features.mk → builddefs/generic_features.mk
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ GENERIC_FEATURES = \
LEADER \
PROGRAMMABLE_BUTTON \
SPACE_CADET \
SWAP_HANDS \
TAP_DANCE \
VELOCIKEY \
WPM \
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 18 additions & 4 deletions common_features.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ QUANTUM_SRC += \
$(QUANTUM_DIR)/keyboard.c \
$(QUANTUM_DIR)/keymap_common.c \
$(QUANTUM_DIR)/keycode_config.c \
$(QUANTUM_DIR)/usb_device_state.c \
$(QUANTUM_DIR)/sync_timer.c \
$(QUANTUM_DIR)/logging/debug.c \
$(QUANTUM_DIR)/logging/sendchar.c \

Expand Down Expand Up @@ -232,7 +232,7 @@ endif
endif

RGB_MATRIX_ENABLE ?= no
VALID_RGB_MATRIX_TYPES := AW20216 IS31FL3731 IS31FL3733 IS31FL3737 IS31FL3741 WS2812 custom
VALID_RGB_MATRIX_TYPES := AW20216 IS31FL3731 IS31FL3733 IS31FL3737 IS31FL3741 CKLED2001 WS2812 custom

ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
ifeq ($(filter $(RGB_MATRIX_DRIVER),$(VALID_RGB_MATRIX_TYPES)),)
Expand Down Expand Up @@ -288,6 +288,13 @@ endif
QUANTUM_LIB_SRC += i2c_master.c
endif

ifeq ($(strip $(RGB_MATRIX_DRIVER)), CKLED2001)
OPT_DEFS += -DCKLED2001 -DSTM32_I2C -DHAL_USE_I2C=TRUE
COMMON_VPATH += $(DRIVER_PATH)/led
SRC += ckled2001.c
QUANTUM_LIB_SRC += i2c_master.c
endif

ifeq ($(strip $(RGB_MATRIX_DRIVER)), WS2812)
OPT_DEFS += -DWS2812
WS2812_DRIVER_REQUIRED := yes
Expand Down Expand Up @@ -326,6 +333,13 @@ ifneq ($(strip $(VARIABLE_TRACE)),no)
endif
endif

ifeq ($(strip $(SLEEP_LED_ENABLE)), yes)
SRC += $(PLATFORM_COMMON_DIR)/sleep_led.c
OPT_DEFS += -DSLEEP_LED_ENABLE

NO_SUSPEND_POWER_DOWN := yes
endif

VALID_BACKLIGHT_TYPES := pwm timer software custom

BACKLIGHT_ENABLE ?= no
Expand Down Expand Up @@ -407,12 +421,12 @@ endif
ifeq ($(strip $(VIA_ENABLE)), yes)
DYNAMIC_KEYMAP_ENABLE := yes
RAW_ENABLE := yes
BOOTMAGIC_ENABLE := lite
BOOTMAGIC_ENABLE := yes
SRC += $(QUANTUM_DIR)/via.c
OPT_DEFS += -DVIA_ENABLE
endif

VALID_MAGIC_TYPES := yes lite
VALID_MAGIC_TYPES := yes
BOOTMAGIC_ENABLE ?= no
ifneq ($(strip $(BOOTMAGIC_ENABLE)), no)
ifeq ($(filter $(BOOTMAGIC_ENABLE),$(VALID_MAGIC_TYPES)),)
Expand Down
2 changes: 1 addition & 1 deletion data/mappings/info_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"RGBLIGHT_SLEEP": {"info_key": "rgblight.sleep", "value_type": "bool"},
"RGBLIGHT_SPLIT": {"info_key": "rgblight.split", "value_type": "bool"},
"RGBW": {"info_key": "rgblight.rgbw", "value_type": "bool"},
"PRODUCT": {"info_key": "keyboard_folder", "to_json": false},
"PRODUCT": {"info_key": "keyboard_name"},
"PRODUCT_ID": {"info_key": "usb.pid", "value_type": "hex"},
"VENDOR_ID": {"info_key": "usb.vid", "value_type": "hex"},
"QMK_ESC_OUTPUT": {"info_key": "qmk_lufa_bootloader.esc_output"},
Expand Down
22 changes: 4 additions & 18 deletions data/templates/avr/config.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
/*
Copyright %YEAR% %YOUR_NAME%
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 %(YEAR)s %(YOUR_NAME)s (@%(USER_NAME)s)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

Expand All @@ -23,8 +9,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define VENDOR_ID 0xFEED
#define PRODUCT_ID 0x0000
#define DEVICE_VER 0x0001
#define MANUFACTURER %YOUR_NAME%
#define PRODUCT %KEYBOARD%
#define MANUFACTURER %(USER_NAME)s
#define PRODUCT %(KEYBOARD)s

/* key matrix size */
#define MATRIX_ROWS 2
Expand Down
10 changes: 5 additions & 5 deletions data/templates/avr/readme.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# %KEYBOARD%
# %(KEYBOARD)s

![%KEYBOARD%](imgur.com image replace me!)
![%(KEYBOARD)s](imgur.com image replace me!)

*A short description of the keyboard/project*

* Keyboard Maintainer: [%YOUR_NAME%](https://github.com/yourusername)
* Keyboard Maintainer: [%(YOUR_NAME)s](https://github.com/%(USER_NAME)s)
* Hardware Supported: *The PCBs, controllers supported*
* Hardware Availability: *Links to where you can find this hardware*

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

make %KEYBOARD%:default
make %(KEYBOARD)s:default

Flashing example for this keyboard:

make %KEYBOARD%:default:flash
make %(KEYBOARD)s: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).

Expand Down
4 changes: 4 additions & 0 deletions data/templates/base/%(KEYBOARD)s.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Copyright %(YEAR)s %(YOUR_NAME)s (@%(USER_NAME)s)
// SPDX-License-Identifier: GPL-2.0-or-later

#include "%(KEYBOARD)s.h"
22 changes: 22 additions & 0 deletions data/templates/base/%(KEYBOARD)s.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright %(YEAR)s %(YOUR_NAME)s (@%(USER_NAME)s)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "quantum.h"

/* This is a shortcut to help you visually see your layout.
*
* The first section contains all of the arguments representing the physical
* layout of the board and position of the keys.
*
* The second converts the arguments into a two-dimensional array which
* represents the switch matrix.
*/
#define LAYOUT( \
k00, k01, k02, \
k10, k12 \
) { \
{ k00, k01, k02 }, \
{ k10, KC_NO, k12 } \
}
4 changes: 2 additions & 2 deletions data/templates/base/info.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"keyboard_name": "%KEYBOARD%",
"keyboard_name": "%(KEYBOARD)s",
"url": "",
"maintainer": "%YOUR_NAME%",
"maintainer": "%(USER_NAME)s",
"layouts": {
"LAYOUT": {
"layout": [
Expand Down
48 changes: 4 additions & 44 deletions data/templates/base/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
/* Copyright %YEAR% %YOUR_NAME%
*
* 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 %(YEAR)s %(YOUR_NAME)s (@%(USER_NAME)s)
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

// Defines names for use in layer keycodes and the keymap
Expand All @@ -21,42 +9,14 @@ enum layer_names {
_FN
};

// Defines the keycodes used by our macros in process_record_user
enum custom_keycodes {
QMKBEST = SAFE_RANGE,
QMKURL
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Base */
[_BASE] = LAYOUT(
KC_A, KC_1, MO(_FN),
KC_TAB, KC_SPC
),
[_FN] = LAYOUT(
QMKBEST, QMKURL, _______,
_______, _______, _______,
RESET, XXXXXXX
)
};

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case QMKBEST:
if (record->event.pressed) {
// when keycode QMKBEST is pressed
SEND_STRING("QMK is the best thing ever!");
} else {
// when keycode QMKBEST is released
}
break;
case QMKURL:
if (record->event.pressed) {
// when keycode QMKURL is pressed
SEND_STRING("https://qmk.fm/\n");
} else {
// when keycode QMKURL is released
}
break;
}
return true;
}
2 changes: 1 addition & 1 deletion data/templates/base/keymaps/default/readme.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# The default keymap for %KEYBOARD%
# The default keymap for %(KEYBOARD)s
22 changes: 4 additions & 18 deletions data/templates/ps2avrgb/config.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
/*
Copyright %YEAR% %YOUR_NAME%
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 %(YEAR)s %(YOUR_NAME)s (@%(USER_NAME)s)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

Expand All @@ -23,8 +9,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define VENDOR_ID 0xFEED
#define PRODUCT_ID 0x0000
#define DEVICE_VER 0x0001
#define MANUFACTURER %YOUR_NAME%
#define PRODUCT %KEYBOARD%
#define MANUFACTURER %(USER_NAME)s
#define PRODUCT %(KEYBOARD)s

/* key matrix size */
#define MATRIX_ROWS 8
Expand Down
10 changes: 5 additions & 5 deletions data/templates/ps2avrgb/readme.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# %KEYBOARD%
# %(KEYBOARD)s

![%KEYBOARD%](imgur.com image replace me!)
![%(KEYBOARD)s](imgur.com image replace me!)

*A short description of the keyboard/project*

* Keyboard Maintainer: [%YOUR_NAME%](https://github.com/yourusername)
* Keyboard Maintainer: [%(YOUR_NAME)s](https://github.com/yourusername)
* Hardware Supported: *The PCBs, controllers supported*
* Hardware Availability: *Links to where you can find this hardware*

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

make %KEYBOARD%:default
make %(KEYBOARD)s:default

Flashing example for this keyboard ([after setting up the bootloadHID flashing environment](https://docs.qmk.fm/#/flashing_bootloadhid))

make %KEYBOARD%:default:flash
make %(KEYBOARD)s: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).

Expand Down
Loading

0 comments on commit 73f70b5

Please sign in to comment.