diff options
Diffstat (limited to 'keyboards/bioi/ble.h')
-rw-r--r-- | keyboards/bioi/ble.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/keyboards/bioi/ble.h b/keyboards/bioi/ble.h new file mode 100644 index 000000000..9167a0972 --- /dev/null +++ b/keyboards/bioi/ble.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /* | ||
2 | Copyright 2019 Basic I/O Instruments(Scott Wei) <[email protected]> | ||
3 | This program is free software: you can redistribute it and/or modify | ||
4 | it under the terms of the GNU General Public License as published by | ||
5 | the Free Software Foundation, either version 2 of the License, or | ||
6 | (at your option) any later version. | ||
7 | This program is distributed in the hope that it will be useful, | ||
8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | GNU General Public License for more details. | ||
11 | You should have received a copy of the GNU General Public License | ||
12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
13 | */ | ||
14 | |||
15 | #pragma once | ||
16 | |||
17 | #include <stdbool.h> | ||
18 | #include "host_driver.h" | ||
19 | #include "host.h" | ||
20 | |||
21 | |||
22 | typedef union { | ||
23 | uint32_t raw; | ||
24 | struct { | ||
25 | bool init : 1; | ||
26 | }; | ||
27 | } keyboard_config_t; | ||
28 | |||
29 | extern keyboard_config_t ble_config; | ||
30 | |||
31 | extern host_driver_t bluefruit_driver; | ||
32 | extern host_driver_t null_driver; | ||
33 | |||
34 | void send_str(const char *str); | ||
35 | void usart_init(void); | ||
36 | void module_reset(void); | ||