Initial version of Raw HID interface
This commit is contained in:
parent
81ea909467
commit
fe001d46fd
7 changed files with 239 additions and 12 deletions
|
@ -1,5 +1,8 @@
|
|||
#include "planck.h"
|
||||
|
||||
#include "raw_hid.h"
|
||||
#include "keymap.h"
|
||||
|
||||
#ifdef ONEHAND_ENABLE
|
||||
__attribute__ ((weak))
|
||||
const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
@ -16,4 +19,15 @@ void matrix_init_kb(void) {
|
|||
PORTE |= (1<<6);
|
||||
|
||||
matrix_init_user();
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef RAW_ENABLE
|
||||
|
||||
void raw_hid_receive( uint8_t *data, uint8_t length )
|
||||
{
|
||||
// Basic test of Raw HID
|
||||
// Echo back data received
|
||||
raw_hid_send( data, length );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue