summaryrefslogtreecommitdiffstats
path: root/keyboards/planck
diff options
context:
space:
mode:
authorWilba6582 <Jason.S.Wiliams@gmail.com>2016-11-28 08:31:16 +0100
committerWilba6582 <Jason.S.Wiliams@gmail.com>2016-11-30 14:44:54 +0100
commitfe001d46fd06924bb81fe8d506f5be8894db3df0 (patch)
tree8beec7a385a2cdc0e6d1444a6e55e479fa47083c /keyboards/planck
parent81ea909467c8a5bfbd803c58e685c5de74dbc249 (diff)
downloadqmk_firmware-fe001d46fd06924bb81fe8d506f5be8894db3df0.tar.gz
qmk_firmware-fe001d46fd06924bb81fe8d506f5be8894db3df0.tar.xz
Initial version of Raw HID interface
Diffstat (limited to 'keyboards/planck')
-rw-r--r--keyboards/planck/planck.c16
-rw-r--r--keyboards/planck/rules.mk3
2 files changed, 17 insertions, 2 deletions
diff --git a/keyboards/planck/planck.c b/keyboards/planck/planck.c
index 645b450d1..0d37b6622 100644
--- a/keyboards/planck/planck.c
+++ b/keyboards/planck/planck.c
@@ -1,5 +1,8 @@
#include "planck.h"
+#include "raw_hid.h"
+#include "keymap.h"
+
#ifdef ONEHAND_ENABLE
__attribute__ ((weak))
const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
@@ -16,4 +19,15 @@ void matrix_init_kb(void) {
PORTE |= (1<<6);
matrix_init_user();
-} \ No newline at end of file
+}
+
+#ifdef RAW_ENABLE
+
+void raw_hid_receive( uint8_t *data, uint8_t length )
+{
+ // Basic test of Raw HID
+ // Echo back data received
+ raw_hid_send( data, length );
+}
+
+#endif
diff --git a/keyboards/planck/rules.mk b/keyboards/planck/rules.mk
index ccee97271..4874d92b9 100644
--- a/keyboards/planck/rules.mk
+++ b/keyboards/planck/rules.mk
@@ -62,7 +62,8 @@ AUDIO_ENABLE ?= no # Audio output on port C6
UNICODE_ENABLE ?= no # Unicode
BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID
RGBLIGHT_ENABLE ?= no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
-API_SYSEX_ENABLE = yes
+API_SYSEX_ENABLE = no
+RAW_ENABLE = yes
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend \ No newline at end of file