From 2d0e448fc07a14074acb845a24aa595a877231f6 Mon Sep 17 00:00:00 2001 From: orumin Date: Sat, 18 Nov 2023 14:49:59 +0900 Subject: [PATCH] feat(Adafruit BLE UART): add delbonds/reconnect API for UART friends --- drivers/bluetooth/bluefruit_le_uart.c | 1 + drivers/bluetooth/bluefruit_le_uart.h | 33 +++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 drivers/bluetooth/bluefruit_le_uart.h diff --git a/drivers/bluetooth/bluefruit_le_uart.c b/drivers/bluetooth/bluefruit_le_uart.c index cc017c74397..9a8f7bf6496 100644 --- a/drivers/bluetooth/bluefruit_le_uart.c +++ b/drivers/bluetooth/bluefruit_le_uart.c @@ -15,6 +15,7 @@ */ #include "bluefruit_le.h" +#include "bluefruit_le_uart.h" #include #include diff --git a/drivers/bluetooth/bluefruit_le_uart.h b/drivers/bluetooth/bluefruit_le_uart.h new file mode 100644 index 00000000000..3e4af3fc04c --- /dev/null +++ b/drivers/bluetooth/bluefruit_le_uart.h @@ -0,0 +1,33 @@ +/* Copyright 2023 KANATSU Minoru + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +/* Bluetooth Low Energy Protocol for QMK, Adafruit BLE UART friends extended functions + * Author: KANATSU Minoru, 2023 + */ + +#pragma once + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +extern bool bluefruit_le_delbonds(void); +extern bool bluefruit_le_reconnect(void); + +#ifdef __cplusplus +} +#endif