]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Merge remote-tracking branch 'flabbergast-tmk_keyboard/chibios'
authortmk <hasu@tmk-kbd.com>
Tue, 9 Feb 2016 20:31:43 +0000 (05:31 +0900)
committertmk <hasu@tmk-kbd.com>
Tue, 9 Feb 2016 20:31:43 +0000 (05:31 +0900)
Merge flabbergast's chibios protocol into master
https://github.com/flabbergast/tmk_keyboard/tree/chibios

1  2 
tmk_core/common.mk
tmk_core/common/action_tapping.c

diff --combined tmk_core/common.mk
index e165a78b9b8152b72405c924c1d3ecbf86ba5b52,8e6ba561315e03c532b41e6cca8b040c1f137457..ebaafd1d311deb55ca1ed0ae5ef37da947ebc622
@@@ -1,4 -1,4 +1,4 @@@
- COMMON_DIR = common
+ COMMON_DIR = $(TMK_DIR)/common
  SRC +=        $(COMMON_DIR)/host.c \
        $(COMMON_DIR)/keyboard.c \
        $(COMMON_DIR)/action.c \
@@@ -58,7 -58,7 +58,7 @@@ ifdef KEYBOARD_LOCK_ENABL
  endif
  
  ifdef SLEEP_LED_ENABLE
-     SRC += $(COMMON_DIR)/sleep_led.c
+     SRC += $(COMMON_DIR)/avr/sleep_led.c
      OPT_DEFS += -DSLEEP_LED_ENABLE
      OPT_DEFS += -DNO_SUSPEND_POWER_DOWN
  endif
@@@ -81,8 -81,7 +81,8 @@@ ifdef KEYMAP_SECTION_ENABL
  endif
  
  # Version string
 -OPT_DEFS += -DVERSION=$(shell (git describe --always --dirty || echo 'unknown') 2> /dev/null)
 +VERSION := $(shell (git describe --always --dirty || echo 'unknown') 2> /dev/null)
 +OPT_DEFS += -DVERSION=$(VERSION)
  
  
  # Search Path
index a74eb1061d5371c88d4e43ed97ed875b34f07c6a,487c62f12e30a892c88514c689252511b7180a6e..a3a5a7d0f82264a52e16aed20a958d799a982644
@@@ -30,6 -30,7 +30,6 @@@ static bool process_tapping(keyrecord_
  static bool waiting_buffer_enq(keyrecord_t record);
  static void waiting_buffer_clear(void);
  static bool waiting_buffer_typed(keyevent_t event);
 -static bool waiting_buffer_has_anykey_pressed(void);
  static void waiting_buffer_scan_tap(void);
  static void debug_tapping_key(void);
  static void debug_waiting_buffer(void);
@@@ -256,7 -257,7 +256,7 @@@ bool process_tapping(keyrecord_t *keyp
                      return true;
                  }
              } else {
-                 if (!IS_NOEVENT(event)) debug("Tapping: other key just after tap.\n");
+                 if (!IS_NOEVENT(event)) debug("Tapping: other key just after tap.\n") {};
                  process_action(keyp);
                  return true;
              }
@@@ -323,6 -324,14 +323,6 @@@ bool waiting_buffer_typed(keyevent_t ev
      return false;
  }
  
 -bool waiting_buffer_has_anykey_pressed(void)
 -{
 -    for (uint8_t i = waiting_buffer_tail; i != waiting_buffer_head; i = (i + 1) % WAITING_BUFFER_SIZE) {
 -        if (waiting_buffer[i].event.pressed) return true;
 -    }
 -    return false;
 -}
 -
  /* scan buffer for tapping */
  void waiting_buffer_scan_tap(void)
  {