mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-09-10 17:15:43 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03cbee8637 | ||
|
|
a9f7d4dccc |
36
Makefile
36
Makefile
@@ -99,40 +99,13 @@ $(eval $(call NEXT_PATH_ELEMENT))
|
||||
# endif
|
||||
# endif
|
||||
|
||||
define GET_KEYBOARDS
|
||||
ifndef ALT_GET_KEYBOARDS
|
||||
All_RULES_MK := $$(patsubst $(ROOT_DIR)/keyboards/%/rules.mk,%,$$(wildcard $(ROOT_DIR)/keyboards/*/rules.mk))
|
||||
All_RULES_MK += $$(patsubst $(ROOT_DIR)/keyboards/%/rules.mk,%,$$(wildcard $(ROOT_DIR)/keyboards/*/*/rules.mk))
|
||||
All_RULES_MK += $$(patsubst $(ROOT_DIR)/keyboards/%/rules.mk,%,$$(wildcard $(ROOT_DIR)/keyboards/*/*/*/rules.mk))
|
||||
All_RULES_MK += $$(patsubst $(ROOT_DIR)/keyboards/%/rules.mk,%,$$(wildcard $(ROOT_DIR)/keyboards/*/*/*/*/rules.mk))
|
||||
|
||||
KEYMAPS_MK := $$(patsubst $(ROOT_DIR)/keyboards/%/rules.mk,%,$$(wildcard $(ROOT_DIR)/keyboards/*/keymaps/*/rules.mk))
|
||||
KEYMAPS_MK += $$(patsubst $(ROOT_DIR)/keyboards/%/rules.mk,%,$$(wildcard $(ROOT_DIR)/keyboards/*/*/keymaps/*/rules.mk))
|
||||
KEYMAPS_MK += $$(patsubst $(ROOT_DIR)/keyboards/%/rules.mk,%,$$(wildcard $(ROOT_DIR)/keyboards/*/*/*/keymaps/*/rules.mk))
|
||||
KEYMAPS_MK += $$(patsubst $(ROOT_DIR)/keyboards/%/rules.mk,%,$$(wildcard $(ROOT_DIR)/keyboards/*/*/*/*/keymaps/*/rules.mk))
|
||||
|
||||
KEYBOARDS := $$(sort $$(filter-out $$(KEYMAPS_MK), $$(All_RULES_MK)))
|
||||
else
|
||||
KEYBOARDS := $(shell find keyboards/ -type f -iname "rules.mk" | grep -v keymaps | sed 's!keyboards/\(.*\)/rules.mk!\1!' | sort | uniq)
|
||||
endif
|
||||
endef
|
||||
|
||||
$(eval $(call GET_KEYBOARDS))
|
||||
|
||||
# Only consider folders with makefiles, to prevent errors in case there are extra folders
|
||||
#KEYBOARDS += $(patsubst $(ROOD_DIR)/keyboards/%/rules.mk,%,$(wildcard $(ROOT_DIR)/keyboards/*/*/rules.mk))
|
||||
|
||||
.PHONY: list-keyboards
|
||||
list-keyboards:
|
||||
echo $(KEYBOARDS)
|
||||
|
||||
define PRINT_KEYBOARD
|
||||
$(info $(PRINTING_KEYBOARD))
|
||||
endef
|
||||
util/list_keyboards.sh | sort -u | tr '\n' ' '
|
||||
|
||||
.PHONY: generate-keyboards-file
|
||||
generate-keyboards-file:
|
||||
$(foreach PRINTING_KEYBOARD,$(KEYBOARDS),$(eval $(call PRINT_KEYBOARD)))
|
||||
util/list_keyboards.sh | sort -u
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@@ -159,7 +132,6 @@ endif
|
||||
# $(info Keyboard: $(KEYBOARD))
|
||||
# $(info Keymap: $(KEYMAP))
|
||||
# $(info Subproject: $(SUBPROJECT))
|
||||
# $(info Keyboards: $(KEYBOARDS))
|
||||
|
||||
|
||||
# Set the default goal depending on where we are running make from
|
||||
@@ -294,7 +266,7 @@ define PARSE_RULE
|
||||
$$(eval $$(call PARSE_TEST))
|
||||
# If the rule starts with the name of a known keyboard, then continue
|
||||
# the parsing from PARSE_KEYBOARD
|
||||
else ifeq ($$(call TRY_TO_MATCH_RULE_FROM_LIST,$$(KEYBOARDS)),true)
|
||||
else ifeq ($$(call TRY_TO_MATCH_RULE_FROM_LIST,$$(shell util/list_keyboards.sh | sort -u)),true)
|
||||
KEYBOARD_RULE=$$(MATCHED_ITEM)
|
||||
$$(eval $$(call PARSE_KEYBOARD,$$(MATCHED_ITEM)))
|
||||
# Otherwise use the KEYBOARD variable, which is determined either by
|
||||
@@ -411,7 +383,7 @@ endef
|
||||
# if we are going to compile all keyboards, match the rest of the rule
|
||||
# for each of them
|
||||
define PARSE_ALL_KEYBOARDS
|
||||
$$(eval $$(call PARSE_ALL_IN_LIST,PARSE_KEYBOARD,$(KEYBOARDS)))
|
||||
$$(eval $$(call PARSE_ALL_IN_LIST,PARSE_KEYBOARD,$(shell util/list_keyboards.sh noci | sort -u)))
|
||||
endef
|
||||
|
||||
# $1 Subproject
|
||||
|
||||
@@ -21,8 +21,6 @@
|
||||
#include <math.h>
|
||||
|
||||
uint8_t DRV2605L_transfer_buffer[2];
|
||||
uint8_t DRV2605L_tx_register[0];
|
||||
uint8_t DRV2605L_read_buffer[0];
|
||||
uint8_t DRV2605L_read_register;
|
||||
|
||||
void DRV_write(uint8_t drv_register, uint8_t settings) {
|
||||
@@ -32,8 +30,7 @@ void DRV_write(uint8_t drv_register, uint8_t settings) {
|
||||
}
|
||||
|
||||
uint8_t DRV_read(uint8_t regaddress) {
|
||||
i2c_readReg(DRV2605L_BASE_ADDRESS << 1, regaddress, DRV2605L_read_buffer, 1, 100);
|
||||
DRV2605L_read_register = (uint8_t)DRV2605L_read_buffer[0];
|
||||
i2c_readReg(DRV2605L_BASE_ADDRESS << 1, regaddress, &DRV2605L_read_register, 1, 100);
|
||||
|
||||
return DRV2605L_read_register;
|
||||
}
|
||||
|
||||
@@ -208,8 +208,6 @@ uint32_t layer_state_set_kb(uint32_t state) {
|
||||
|
||||
if (is_keyboard_master())
|
||||
{
|
||||
|
||||
current_layer = biton32(state);
|
||||
serial_m2s_buffer.current_layer = biton32(state);
|
||||
|
||||
// If left half, do the LED toggle thing
|
||||
|
||||
@@ -56,8 +56,6 @@
|
||||
{ R40, R41, R42, R43, R44, R45, KC_NO } \
|
||||
}
|
||||
|
||||
uint8_t current_layer;
|
||||
|
||||
extern void led_toggle(int id, bool on);
|
||||
void set_all_leds(bool leds[6]);
|
||||
extern void set_layer_indicators(uint8_t layer);
|
||||
|
||||
@@ -15,7 +15,6 @@ extern size_t keymapsCount; // Total keymaps
|
||||
extern uint32_t cChord; // Current Chord
|
||||
extern uint32_t stenoLayers[]; // Chords that simulate QMK layers
|
||||
extern size_t stenoLayerCount; // Number of simulated layers
|
||||
uint32_t refChord; // Reference chord for PC macro
|
||||
|
||||
// Function defs
|
||||
void processChord(bool useFakeSteno);
|
||||
@@ -35,7 +34,7 @@ void CLICK_MOUSE(uint8_t);
|
||||
#define P(chord, act) if (cChord == (chord)) { if (!lookup) {act;} return chord;}
|
||||
#define PC(chord, act) if (cChord == (chord)) { if (!lookup) {act;} return chord;} \
|
||||
for(int i = 0; i < stenoLayerCount; i++) { \
|
||||
refChord = stenoLayers[i] | chord; \
|
||||
uint32_t refChord = stenoLayers[i] | chord; \
|
||||
if (cChord == (refChord)) { if (!lookup) {act;} return refChord;}; \
|
||||
}
|
||||
|
||||
|
||||
0
keyboards/clueboard/17/.noci
Normal file
0
keyboards/clueboard/17/.noci
Normal file
0
keyboards/clueboard/2x1800/2018/.noci
Normal file
0
keyboards/clueboard/2x1800/2018/.noci
Normal file
0
keyboards/clueboard/60/.noci
Normal file
0
keyboards/clueboard/60/.noci
Normal file
0
keyboards/clueboard/66/rev1/.noci
Normal file
0
keyboards/clueboard/66/rev1/.noci
Normal file
0
keyboards/clueboard/66/rev2/.noci
Normal file
0
keyboards/clueboard/66/rev2/.noci
Normal file
0
keyboards/clueboard/66_hotswap/prototype/.noci
Normal file
0
keyboards/clueboard/66_hotswap/prototype/.noci
Normal file
0
keyboards/clueboard/card/.noci
Normal file
0
keyboards/clueboard/card/.noci
Normal file
@@ -15,7 +15,6 @@ extern size_t keymapsCount; // Total keymaps
|
||||
extern uint32_t cChord; // Current Chord
|
||||
extern uint32_t stenoLayers[]; // Chords that simulate QMK layers
|
||||
extern size_t stenoLayerCount; // Number of simulated layers
|
||||
uint32_t refChord; // Reference chord for PC macro
|
||||
|
||||
// Function defs
|
||||
void processChord(bool useFakeSteno);
|
||||
@@ -35,7 +34,7 @@ void CLICK_MOUSE(uint8_t);
|
||||
#define P(chord, act) if (cChord == (chord)) { if (!lookup) {act;} return chord;}
|
||||
#define PC(chord, act) if (cChord == (chord)) { if (!lookup) {act;} return chord;} \
|
||||
for(int i = 0; i < stenoLayerCount; i++) { \
|
||||
refChord = stenoLayers[i] | chord; \
|
||||
uint32_t refChord = stenoLayers[i] | chord; \
|
||||
if (cChord == (refChord)) { if (!lookup) {act;} return refChord;}; \
|
||||
}
|
||||
|
||||
|
||||
@@ -38,37 +38,37 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#endif
|
||||
|
||||
// MCP Pin Defs
|
||||
#define RROW1 (1<<3)
|
||||
#define RROW2 (1<<2)
|
||||
#define RROW3 (1<<1)
|
||||
#define RROW4 (1<<0)
|
||||
#define COL0 (1<<0)
|
||||
#define COL1 (1<<1)
|
||||
#define COL2 (1<<2)
|
||||
#define COL3 (1<<3)
|
||||
#define COL4 (1<<4)
|
||||
#define COL5 (1<<5)
|
||||
#define COL6 (1<<6)
|
||||
#define RROW1 (1u<<3)
|
||||
#define RROW2 (1u<<2)
|
||||
#define RROW3 (1u<<1)
|
||||
#define RROW4 (1u<<0)
|
||||
#define COL0 (1u<<0)
|
||||
#define COL1 (1u<<1)
|
||||
#define COL2 (1u<<2)
|
||||
#define COL3 (1u<<3)
|
||||
#define COL4 (1u<<4)
|
||||
#define COL5 (1u<<5)
|
||||
#define COL6 (1u<<6)
|
||||
|
||||
// ATmega pin defs
|
||||
#define ROW1 (1<<6)
|
||||
#define ROW2 (1<<5)
|
||||
#define ROW3 (1<<4)
|
||||
#define ROW4 (1<<1)
|
||||
#define COL7 (1<<0)
|
||||
#define COL8 (1<<1)
|
||||
#define COL9 (1<<2)
|
||||
#define COL10 (1<<3)
|
||||
#define COL11 (1<<2)
|
||||
#define COL12 (1<<3)
|
||||
#define COL13 (1<<6)
|
||||
#define ROW1 (1u<<6)
|
||||
#define ROW2 (1u<<5)
|
||||
#define ROW3 (1u<<4)
|
||||
#define ROW4 (1u<<1)
|
||||
#define COL7 (1u<<0)
|
||||
#define COL8 (1u<<1)
|
||||
#define COL9 (1u<<2)
|
||||
#define COL10 (1u<<3)
|
||||
#define COL11 (1u<<2)
|
||||
#define COL12 (1u<<3)
|
||||
#define COL13 (1u<<6)
|
||||
|
||||
//Trackball pin defs
|
||||
#define TRKUP (1<<4)
|
||||
#define TRKDN (1<<5)
|
||||
#define TRKLT (1<<6)
|
||||
#define TRKRT (1<<7)
|
||||
#define TRKBTN (1<<6)
|
||||
#define TRKUP (1u<<4)
|
||||
#define TRKDN (1u<<5)
|
||||
#define TRKLT (1u<<6)
|
||||
#define TRKRT (1u<<7)
|
||||
#define TRKBTN (1u<<6)
|
||||
|
||||
|
||||
// Multiple for mouse moves
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
#include <string.h>
|
||||
|
||||
dynamic_macro_t dynamic_macros[DYNAMIC_MACRO_COUNT];
|
||||
|
||||
void dynamic_macro_init(void) {
|
||||
/* zero out macro blocks */
|
||||
memset(&dynamic_macros, 0, DYNAMIC_MACRO_COUNT * sizeof(dynamic_macro_t));
|
||||
|
||||
@@ -71,8 +71,6 @@ typedef struct {
|
||||
uint16_t checksum;
|
||||
} dynamic_macro_t;
|
||||
|
||||
dynamic_macro_t dynamic_macros[DYNAMIC_MACRO_COUNT];
|
||||
|
||||
void dynamic_macro_init(void);
|
||||
void dynamic_macro_led_blink(void);
|
||||
void dynamic_macro_record_start(uint8_t macro_id);
|
||||
|
||||
@@ -24,7 +24,7 @@ __attribute__((weak)) float fauxclicky_pressed_note[2] = MUSICAL_NOTE(_D4, 0.25
|
||||
__attribute__((weak)) float fauxclicky_released_note[2] = MUSICAL_NOTE(_C4, 0.125);
|
||||
__attribute__((weak)) float fauxclicky_beep_note[2] = MUSICAL_NOTE(_C4, 0.25);
|
||||
|
||||
bool fauxclicky_enabled;
|
||||
extern bool fauxclicky_enabled;
|
||||
|
||||
//
|
||||
// tempo in BPM
|
||||
|
||||
10
util/list_keyboards.sh
Executable file
10
util/list_keyboards.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
# Temporary shell script to find keyboards
|
||||
#
|
||||
# This allows us to exclude keyboards by including a .noci file.
|
||||
|
||||
find keyboards -type f -name rules.mk | grep -v keymaps | while read keyboard; do
|
||||
keyboard=$(echo $keyboard | sed 's!keyboards/\(.*\)/rules.mk!\1!')
|
||||
|
||||
[ "$1" = "noci" -a -e "keyboards/${keyboard}/.noci" ] || echo "$keyboard"
|
||||
done
|
||||
Reference in New Issue
Block a user