qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

raw_hid.c (459B)


      1 // Copyright 2025 QMK
      2 // SPDX-License-Identifier: GPL-2.0-or-later
      3 
      4 #include "raw_hid.h"
      5 #include "host.h"
      6 
      7 void raw_hid_send(uint8_t *data, uint8_t length) {
      8     host_raw_hid_send(data, length);
      9 }
     10 
     11 __attribute__((weak)) void raw_hid_receive(uint8_t *data, uint8_t length) {
     12     // Users should #include "raw_hid.h" in their own code
     13     // and implement this function there. Leave this as weak linkage
     14     // so users can opt to not handle data coming in.
     15 }