diff options
Diffstat (limited to 'protocol/lufa/bluetooth.c')
| -rw-r--r-- | protocol/lufa/bluetooth.c | 37 |
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 | /* | ||
| 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 "../serial.h" | ||
| 23 | #include "bluetooth.h" | ||
| 24 | |||
| 25 | void 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 | |||
| 34 | void bluefruit_serial_send(uint8_t data) | ||
| 35 | { | ||
| 36 | serial_send(data); | ||
| 37 | } \ No newline at end of file | ||
