aboutsummaryrefslogtreecommitdiff
path: root/protocol/lufa/bluetooth.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocol/lufa/bluetooth.c')
-rw-r--r--protocol/lufa/bluetooth.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/protocol/lufa/bluetooth.c b/protocol/lufa/bluetooth.c
new file mode 100644
index 000000000..ed66e52c1
--- /dev/null
+++ b/protocol/lufa/bluetooth.c
@@ -0,0 +1,37 @@
1/*
2Bluefruit Protocol for TMK firmware
3Author: Benjamin Gould, 2013
4 Jack Humbert, 2015
5Based on code Copyright 2011 Jun Wako <wakojun@gmail.com>
6This program is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation, either version 2 of the License, or
9(at your option) any later version.
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include <stdint.h>
19#include "report.h"
20#include "print.h"
21#include "debug.h"
22#include "../serial.h"
23#include "bluetooth.h"
24
25void bluefruit_keyboard_print_report(report_keyboard_t *report)
26{
27 if (!debug_keyboard) return;
28 dprintf("keys: "); for (int i = 0; i < KEYBOARD_REPORT_KEYS; i++) { debug_hex8(report->keys[i]); dprintf(" "); }
29 dprintf(" mods: "); debug_hex8(report->mods);
30 dprintf(" reserved: "); debug_hex8(report->reserved);
31 dprintf("\n");
32}
33
34void bluefruit_serial_send(uint8_t data)
35{
36 serial_send(data);
37} \ No newline at end of file