Add raw_hid support to host driver (#25255)

This commit is contained in:
Joel Challis 2025-05-11 23:38:48 +01:00 committed by GitHub
parent c045c3e00c
commit 88c094908b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 95 additions and 36 deletions

15
quantum/raw_hid.c Normal file
View file

@ -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.
}