diff options
| author | Joel Challis | 2025-05-12 00:38:48 +0200 |
|---|---|---|
| committer | GitHub | 2025-05-12 00:38:48 +0200 |
| commit | 88c094908bb94324e28876f2beb8028a9fad086d (patch) | |
| tree | 4e47c513470873b59ac20735bdec99afb903fd5a /quantum/raw_hid.c | |
| parent | c045c3e00c41597fbc82239376611d3ac8a7a52e (diff) | |
Add raw_hid support to host driver (#25255)
Diffstat (limited to 'quantum/raw_hid.c')
| -rw-r--r-- | quantum/raw_hid.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/quantum/raw_hid.c b/quantum/raw_hid.c new file mode 100644 index 0000000000..2c7a75f325 --- /dev/null +++ b/quantum/raw_hid.c @@ -0,0 +1,15 @@ +// Copyright 2025 QMK +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "raw_hid.h" +#include "host.h" + +void raw_hid_send(uint8_t *data, uint8_t length) { + host_raw_hid_send(data, length); +} + +__attribute__((weak)) void raw_hid_receive(uint8_t *data, uint8_t length) { + // Users should #include "raw_hid.h" in their own code + // and implement this function there. Leave this as weak linkage + // so users can opt to not handle data coming in. +} |