Skip to content

Commit 4a1cdca

Browse files
authored
Merge pull request qmk#11 from zhaqian12/merge
merge
2 parents 8d6efc6 + a6729ec commit 4a1cdca

File tree

45 files changed

+1715
-515
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1715
-515
lines changed

builddefs/common_features.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ else
188188
ifeq ($(PLATFORM),AVR)
189189
# Automatically provided by avr-libc, nothing required
190190
else ifeq ($(PLATFORM),CHIBIOS)
191-
ifneq ($(filter STM32F3xx_% STM32F1xx_% STM32F4xx_% STM32L4xx_% GD32VF103_% %_STM32F401xC %_STM32F401xE %_STM32F405xG %_STM32F411xE %_STM32F072xB %_STM32F042x6 %_GD32VF103xB %_GD32VF103x8 ,$(MCU_SERIES)_$(MCU_LDSCRIPT)),)
191+
ifneq ($(filter STM32F3xx_% STM32F1xx_% STM32F4xx_% STM32L4xx_% GD32VF103_% CM32M101A_% AIR32F103_% %_STM32F401xC %_STM32F401xE %_STM32F405xG %_STM32F411xE %_STM32F072xB %_STM32F042x6 %_GD32VF103xB %_GD32VF103x8 ,$(MCU_SERIES)_$(MCU_LDSCRIPT)),)
192192
# Emulated EEPROM
193193
OPT_DEFS += -DEEPROM_DRIVER -DEEPROM_STM32_FLASH_EMULATED
194194
COMMON_VPATH += $(DRIVER_PATH)/eeprom

builddefs/mcu_selection.mk

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,38 @@ ifneq ($(findstring CM32M101A, $(MCU)),)
778778
CM32_BOOTLOADER_ADDRESS ?= 0x1FFF0000
779779
endif
780780

781+
ifneq ($(findstring AIR32F103, $(MCU)),)
782+
# Cortex version
783+
MCU = cortex-m3
784+
785+
# ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
786+
ARMV = 7
787+
788+
## chip/board settings
789+
# - the next two should match the directories in
790+
# <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
791+
MCU_FAMILY = AIR32
792+
MCU_SERIES = AIR32F10x
793+
794+
# Linker script to use
795+
# - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
796+
# or <keyboard_dir>/ld/
797+
MCU_LDSCRIPT ?= AIR32F103xC
798+
799+
# Startup code to use
800+
# - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
801+
MCU_STARTUP ?= air32f10x
802+
803+
# Board: it should exist either in <chibios>/os/hal/boards/,
804+
# <keyboard_dir>/boards/, or drivers/boards/
805+
BOARD ?= GENERIC_AIR32_F103
806+
807+
USE_FPU ?= no
808+
809+
# UF2 settings
810+
UF2_FAMILY ?= STM32F1
811+
endif
812+
781813
ifneq ($(findstring GD32VF103, $(MCU)),)
782814
# RISC-V
783815
MCU = risc-v

data/schemas/keyboard.jsonschema

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"processor": {
2323
"type": "string",
24-
"enum": ["cortex-m0", "cortex-m0plus", "cortex-m3", "cortex-m4", "MKL26Z64", "MK20DX128", "MK20DX256", "MK66FX1M0", "STM32F042", "STM32F072", "STM32F103", "STM32F303", "STM32F401", "STM32F405", "STM32F407", "STM32F411", "STM32F446", "STM32G431", "STM32G474", "STM32L412", "STM32L422", "STM32L432", "STM32L433", "STM32L442", "STM32L443", "GD32VF103", "WB32F3G71", "WB32FQ95", "CM32M101A", "atmega16u2", "atmega32u2", "atmega16u4", "atmega32u4", "at90usb162", "at90usb646", "at90usb647", "at90usb1286", "at90usb1287", "atmega32a", "atmega328p", "atmega328", "attiny85", "unknown"]
24+
"enum": ["cortex-m0", "cortex-m0plus", "cortex-m3", "cortex-m4", "MKL26Z64", "MK20DX128", "MK20DX256", "MK66FX1M0", "STM32F042", "STM32F072", "STM32F103", "STM32F303", "STM32F401", "STM32F405", "STM32F407", "STM32F411", "STM32F446", "STM32G431", "STM32G474", "STM32L412", "STM32L422", "STM32L432", "STM32L433", "STM32L442", "STM32L443", "GD32VF103", "WB32F3G71", "WB32FQ95", "CM32M101A", "AIR32F103", "atmega16u2", "atmega32u2", "atmega16u4", "atmega32u4", "at90usb162", "at90usb646", "at90usb647", "at90usb1286", "at90usb1287", "atmega32a", "atmega328p", "atmega328", "attiny85", "unknown"]
2525
},
2626
"audio": {
2727
"type": "object",

docs/ref_functions.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,13 @@ To configure the default layer sounds, you would want to define this in your `co
8787

8888
## Resetting the keyboard
8989

90-
There is the `RESET` quantum keycode that you can use. But if you want to reset the board as part of a macro, rather than hitting a key separately, you can do that.
90+
There is the `QK_REBOOT` or `QK_RBT` quantum keycode that you can use. But if you want to reset the board as part of a macro, rather than hitting a key separately, you can do that.
9191

92-
And to do so, add `reset_keyboard()` to your function or macro, and this will reset to bootloader.
92+
And to do so, add `soft_reset_keyboard()` to your function or macro.
93+
94+
## Reset to bootloader
95+
96+
To reset to the bootloader use `QK_BOOTLOADER` or `QK_BOOT` keycode or `reset_keyboard()` function.
9397

9498
## Wiping the EEPROM (Persistent Storage)
9599

keyboards/chaos65/chaos65.h

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,24 @@
2020

2121
#define ___ KC_NO
2222

23+
24+
/*
25+
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ ┌───────┐
26+
* │00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0A │0B │0C │0D │48 │0E │ │0D │ 2u Backspace
27+
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┤ └─┬─────┤
28+
* │10 │11 │12 │13 │14 │15 │16 │17 │18 │19 │1A │1B │1C │1D │1E │ │ │
29+
* 2.25u ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤ ┌──┴┐2C │ ISO Enter
30+
* LShift │20 │21 │22 │23 │24 │25 │26 │27 │28 │29 │2A │2B │2C │2D │ │1D │ │
31+
* ┌────────┐ ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤ └───┴────┘
32+
* │30 │ │30 │31 │32 │33 │34 │35 │36 │37 │38 │39 │3A │3B │3C │3D │3E │
33+
* └────────┘ ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
34+
* │40 │41 │42 │46 │4A │4B │ │4C │4D │4E │
35+
* └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴───┘
36+
* ┌─────┬───┬─────┬───────────────────────────┬─────┬─┬───┬───┬───┐
37+
* │40 │41 │42 │46 │4A │ │4C │4D │4E │ Tsangan
38+
* └─────┴───┴─────┴───────────────────────────┴─────┘ └───┴───┴───┘
39+
*/
40+
2341
#define LAYOUT_all( \
2442
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, k48, k0E, \
2543
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1D, k1E, \
@@ -64,8 +82,8 @@
6482

6583
#define LAYOUT_65_iso_blocker( \
6684
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, k0E, \
67-
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k2C, k1E, \
68-
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k1D, k2D, \
85+
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1E, \
86+
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k1D, k2C, k2D, \
6987
k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3C, k3D, k3E, \
7088
k40, k41, k42, k46, k4A, k4B, k4C, k4D, k4E \
7189
) { \
@@ -78,8 +96,8 @@
7896

7997
#define LAYOUT_65_iso_blocker_tsangan( \
8098
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, k0E, \
81-
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k2C, k1E, \
82-
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k1D, k2D, \
99+
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1E, \
100+
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k1D, k2C, k2D, \
83101
k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3C, k3D, k3E, \
84102
k40, k41, k42, k46, k4A, k4C, k4D, k4E \
85103
) { \

0 commit comments

Comments
 (0)