aboutsummaryrefslogtreecommitdiff
path: root/keyboards/bioi/ble.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/bioi/ble.h')
-rw-r--r--keyboards/bioi/ble.h36
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/*
2Copyright 2019 Basic I/O Instruments(Scott Wei) <[email protected]>
3This program is free software: you can redistribute it and/or modify
4it under the terms of the GNU General Public License as published by
5the Free Software Foundation, either version 2 of the License, or
6(at your option) any later version.
7This program is distributed in the hope that it will be useful,
8but WITHOUT ANY WARRANTY; without even the implied warranty of
9MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10GNU General Public License for more details.
11You should have received a copy of the GNU General Public License
12along 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
22typedef union {
23 uint32_t raw;
24 struct {
25 bool init : 1;
26 };
27} keyboard_config_t;
28
29extern keyboard_config_t ble_config;
30
31extern host_driver_t bluefruit_driver;
32extern host_driver_t null_driver;
33
34void send_str(const char *str);
35void usart_init(void);
36void module_reset(void);