aboutsummaryrefslogtreecommitdiff
path: root/protocol/mbed/mbed_driver.cpp
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2014-06-18 02:22:59 +0900
committertmk <nobody@nowhere>2014-07-30 14:07:43 +0900
commit80c3ff5fa03429f1e4ea15032f665ceb88c9b8c3 (patch)
tree803fe5b419419607146b6ba1db69d24486b1494e /protocol/mbed/mbed_driver.cpp
parente81c70149ecf73256f8bb7d77cefc07f2b91d2be (diff)
downloadqmk_firmware-80c3ff5fa03429f1e4ea15032f665ceb88c9b8c3.tar.gz
qmk_firmware-80c3ff5fa03429f1e4ea15032f665ceb88c9b8c3.zip
Fix build files for mbed
Diffstat (limited to 'protocol/mbed/mbed_driver.cpp')
-rw-r--r--protocol/mbed/mbed_driver.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/protocol/mbed/mbed_driver.cpp b/protocol/mbed/mbed_driver.cpp
new file mode 100644
index 000000000..333f8e378
--- /dev/null
+++ b/protocol/mbed/mbed_driver.cpp
@@ -0,0 +1,41 @@
1#include "HIDKeyboard.h"
2#include "host.h"
3#include "host_driver.h"
4#include "mbed_driver.h"
5
6HIDKeyboard keyboard;
7
8
9/* Host driver */
10static uint8_t keyboard_leds(void);
11static void send_keyboard(report_keyboard_t *report);
12static void send_mouse(report_mouse_t *report);
13static void send_system(uint16_t data);
14static void send_consumer(uint16_t data);
15
16host_driver_t mbed_driver = {
17 keyboard_leds,
18 send_keyboard,
19 send_mouse,
20 send_system,
21 send_consumer
22};
23
24
25static uint8_t keyboard_leds(void)
26{
27 return 0;
28}
29static void send_keyboard(report_keyboard_t *report)
30{
31 keyboard.sendReport(*report);
32}
33static void send_mouse(report_mouse_t *report)
34{
35}
36static void send_system(uint16_t data)
37{
38}
39static void send_consumer(uint16_t data)
40{
41}