Port action_* to mbed
This commit is contained in:
parent
04fe78ee0a
commit
c67ae2a6b5
21 changed files with 92 additions and 64 deletions
|
@ -3,16 +3,7 @@
|
|||
#include "stdint.h"
|
||||
#include "stdbool.h"
|
||||
#include "USBHID.h"
|
||||
|
||||
|
||||
typedef union {
|
||||
uint8_t raw[8];
|
||||
struct {
|
||||
uint8_t mods;
|
||||
uint8_t reserved;
|
||||
uint8_t keys[6];
|
||||
};
|
||||
} __attribute__ ((packed)) report_keyboard_t;
|
||||
#include "report.h"
|
||||
|
||||
|
||||
class HIDKeyboard : public USBDevice {
|
||||
|
|
|
@ -15,6 +15,7 @@ OBJDIR = ./build
|
|||
|
||||
OBJECTS = \
|
||||
$(OBJDIR)/./HIDKeyboard.o \
|
||||
$(OBJDIR)/./mbed_driver.o \
|
||||
$(OBJDIR)/./main.o
|
||||
|
||||
SYS_OBJECTS =
|
||||
|
|
|
@ -2,20 +2,20 @@ COMMON_DIR = common
|
|||
OBJECTS += \
|
||||
$(OBJDIR)/$(COMMON_DIR)/mbed/timer.o \
|
||||
$(OBJDIR)/$(COMMON_DIR)/mbed/xprintf.o \
|
||||
$(OBJDIR)/$(COMMON_DIR)/action.o \
|
||||
$(OBJDIR)/$(COMMON_DIR)/action_tapping.o \
|
||||
$(OBJDIR)/$(COMMON_DIR)/action_macro.o \
|
||||
$(OBJDIR)/$(COMMON_DIR)/action_layer.o \
|
||||
$(OBJDIR)/$(COMMON_DIR)/action_util.o \
|
||||
$(OBJDIR)/$(COMMON_DIR)/host.o \
|
||||
|
||||
INCLUDE_PATHS += \
|
||||
-I$(TMK_DIR)/$(COMMON_DIR)
|
||||
|
||||
|
||||
|
||||
# $(OBJDIR)/$(COMMON_DIR)/action.o \
|
||||
|
||||
# $(OBJDIR)/$(COMMON_DIR)/host.o \
|
||||
# $(OBJDIR)/$(COMMON_DIR)/keyboard.o \
|
||||
# $(OBJDIR)/$(COMMON_DIR)/action_tapping.o \
|
||||
# $(OBJDIR)/$(COMMON_DIR)/action_macro.o \
|
||||
# $(OBJDIR)/$(COMMON_DIR)/action_layer.o \
|
||||
# $(OBJDIR)/$(COMMON_DIR)/action_util.o \
|
||||
# $(OBJDIR)/$(COMMON_DIR)/keymap.o \
|
||||
# $(OBJDIR)/$(COMMON_DIR)/bootloader.o \
|
||||
# $(OBJDIR)/$(COMMON_DIR)/suspend.o \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue