]> git.donarmstrong.com Git - qmk_firmware.git/blob - tmk_core/protocol/lufa/bluetooth.c
fixed two typos
[qmk_firmware.git] / tmk_core / protocol / lufa / bluetooth.c
1 /*
2 Bluefruit Protocol for TMK firmware
3 Author: Benjamin Gould, 2013
4         Jack Humbert, 2015
5 Based on code Copyright 2011 Jun Wako <wakojun@gmail.com>
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 2 of the License, or
9 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along 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 "bluetooth.h"
23
24 void bluefruit_keyboard_print_report(report_keyboard_t *report)
25 {
26     if (!debug_keyboard) return;
27     dprintf("keys: "); for (int i = 0; i < KEYBOARD_REPORT_KEYS; i++) { debug_hex8(report->keys[i]); dprintf(" "); }
28     dprintf(" mods: "); debug_hex8(report->mods);
29     dprintf(" reserved: "); debug_hex8(report->reserved); 
30     dprintf("\n");
31 }
32
33 void bluefruit_serial_send(uint8_t data)
34 {
35     serial_send(data);
36 }