forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
2,525 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
keyboards/yandrstudio/biu_nrf52_ble_lib/biu_ble_common.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
#include "biu_ble_common.h" | ||
|
||
__attribute__((weak)) bool bluetooth_init(void) { return true; } | ||
|
||
__attribute__((weak)) void bluetooth_task(void) {} | ||
|
||
__attribute__((weak)) bool bluetooth_is_connected(void) { return true; } | ||
|
||
__attribute__((weak)) void bluetooth_unpair_all(void) {} | ||
|
||
__attribute__((weak)) void bluetooth_unpair_one(uint8_t device_id) {} | ||
|
||
__attribute__((weak)) void bluetooth_pair(void) {} | ||
|
||
__attribute__((weak)) void bluetooth_switch_one(uint8_t device_id) {} | ||
|
||
__attribute__((weak)) void bluetooth_send_keyboard(report_keyboard_t *report) {} | ||
|
||
#ifdef EXTRAKEY_ENABLE | ||
__attribute__((weak)) void bluetooth_send_extra(uint8_t report_id, uint16_t keycode) {} | ||
#endif | ||
|
||
|
||
#ifdef MOUSE_ENABLE | ||
__attribute__((weak)) void bluetooth_send_mouse(report_mouse_t *report) {} | ||
#endif | ||
|
||
#ifdef NKRO_ENABLE | ||
__attribute__((weak)) void bluetooth_send_keyboard_nkro(report_keyboard_t *report) {} | ||
#endif | ||
|
||
#ifdef JOYSTICK_ENABLE | ||
__attribute__((weak)) void bluetooth_send_joystick(joystick_report_t *report) {} | ||
#endif | ||
|
||
__attribute__((weak)) void bluetooth_send_battery_level(void) { } | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma once | ||
|
||
#include "report.h" | ||
#include <stdint.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
bool bluetooth_init(void); | ||
void bluetooth_task(void); | ||
bool bluetooth_is_connected(void); | ||
void bluetooth_unpair_all(void); | ||
void bluetooth_unpair_one(uint8_t device_id); | ||
void bluetooth_pair(void); | ||
void bluetooth_switch_one(uint8_t device_id); | ||
|
||
void bluetooth_send_keyboard(report_keyboard_t *report); | ||
|
||
#ifdef EXTRAKEY_ENABLE | ||
void bluetooth_send_extra(uint8_t report_id, uint16_t keycode); | ||
#endif | ||
|
||
#ifdef MOUSE_ENABLE | ||
void bluetooth_send_mouse(report_mouse_t *report); | ||
#endif | ||
|
||
#ifdef NKRO_ENABLE | ||
void bluetooth_send_keyboard_nkro(report_keyboard_t *report); | ||
#endif | ||
|
||
#ifdef JOYSTICK_ENABLE | ||
void bluetooth_send_joystick(joystick_report_t *report); | ||
#endif | ||
|
||
void bluetooth_send_battery_level(void); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |
Oops, something went wrong.