Merge branch 'master' of github.com:qmk/qmk_firmware into planck_rev6
This commit is contained in:
commit
4fdc9badd3
504 changed files with 16974 additions and 3495 deletions
|
|
@ -258,10 +258,10 @@ void process_action(keyrecord_t *record, action_t action)
|
|||
if (event.pressed) {
|
||||
if (tap_count == 0) {
|
||||
dprint("MODS_TAP: Oneshot: 0\n");
|
||||
register_mods(mods);
|
||||
register_mods(mods | get_oneshot_mods());
|
||||
} else if (tap_count == 1) {
|
||||
dprint("MODS_TAP: Oneshot: start\n");
|
||||
set_oneshot_mods(mods);
|
||||
set_oneshot_mods(mods | get_oneshot_mods());
|
||||
#if defined(ONESHOT_TAP_TOGGLE) && ONESHOT_TAP_TOGGLE > 1
|
||||
} else if (tap_count == ONESHOT_TAP_TOGGLE) {
|
||||
dprint("MODS_TAP: Toggling oneshot");
|
||||
|
|
@ -270,7 +270,7 @@ void process_action(keyrecord_t *record, action_t action)
|
|||
register_mods(mods);
|
||||
#endif
|
||||
} else {
|
||||
register_mods(mods);
|
||||
register_mods(mods | get_oneshot_mods());
|
||||
}
|
||||
} else {
|
||||
if (tap_count == 0) {
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
#define BOOTLOADER_RESET_KEY 0xB007B007
|
||||
uint32_t reset_key __attribute__ ((section (".noinit")));
|
||||
|
||||
/** \brief initialize MCU status by watchdog reset
|
||||
/** \brief initialize MCU status by watchdog reset
|
||||
*
|
||||
* FIXME: needs doc
|
||||
*/
|
||||
|
|
@ -81,7 +81,7 @@ void bootloader_jump(void) {
|
|||
#if !defined(BOOTLOADER_SIZE)
|
||||
uint8_t high_fuse = boot_lock_fuse_bits_get(GET_HIGH_FUSE_BITS);
|
||||
|
||||
if (high_fuse & BOOT_SIZE_256) {
|
||||
if (high_fuse & BOOT_SIZE_256) {
|
||||
bootloader_start = (FLASH_SIZE - 512) >> 1;
|
||||
} else if (high_fuse & BOOT_SIZE_512) {
|
||||
bootloader_start = (FLASH_SIZE - 1024) >> 1;
|
||||
|
|
@ -130,7 +130,7 @@ void bootloader_jump(void) {
|
|||
DDRA = 0; DDRB = 0; DDRC = 0; DDRD = 0; DDRE = 0; DDRF = 0;
|
||||
PORTA = 0; PORTB = 0; PORTC = 0; PORTD = 0; PORTE = 0; PORTF = 0;
|
||||
asm volatile("jmp 0x1FC00");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#elif defined(BOOTLOADER_CATERINA)
|
||||
// this block may be optional
|
||||
|
|
@ -151,7 +151,7 @@ void bootloader_jump(void) {
|
|||
|
||||
#else // Assume remaining boards are DFU, even if the flag isn't set
|
||||
|
||||
#ifndef __AVR_ATmega32A__ // no USB - maybe BOOTLOADER_BOOTLOADHID instead though?
|
||||
#if !(defined(__AVR_ATmega32A__) || defined(__AVR_ATmega328P__)) // no USB - maybe BOOTLOADER_BOOTLOADHID instead though?
|
||||
UDCON = 1;
|
||||
USBCON = (1<<FRZCLK); // disable USB
|
||||
UCSR1B = 0;
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ static void power_down(uint8_t wdto)
|
|||
#ifdef RGBLIGHT_ANIMATIONS
|
||||
rgblight_timer_disable();
|
||||
#endif
|
||||
rgblight_disable();
|
||||
rgblight_disable_noeeprom();
|
||||
#endif
|
||||
// TODO: more power saving
|
||||
// See PicoPower application note
|
||||
|
|
@ -157,7 +157,7 @@ void suspend_wakeup_init(void)
|
|||
#endif
|
||||
led_set(host_keyboard_leds());
|
||||
#ifdef RGBLIGHT_SLEEP
|
||||
rgblight_enable();
|
||||
rgblight_enable_noeeprom();
|
||||
#ifdef RGBLIGHT_ANIMATIONS
|
||||
rgblight_timer_enable();
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -17,7 +17,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
/*
|
||||
* Keycodes based on HID Usage Keyboard/Keypad Page(0x07) plus special codes
|
||||
* http://www.usb.org/developers/devclass_docs/Hut1_12.pdf
|
||||
* https://web.archive.org/web/20060218214400/http://www.usb.org/developers/devclass_docs/Hut1_12.pdf
|
||||
* or http://www.usb.org/developers/hidpage/Hut1_12v2.pdf (older)
|
||||
*/
|
||||
#ifndef KEYCODE_H
|
||||
#define KEYCODE_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue