Skip to content

Commit

Permalink
always enable the keyboard iface
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx committed Apr 17, 2024
1 parent c5664e1 commit d2f8161
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Src/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,9 @@ void usb_resources_alloc(void) {
IFACE_TABLE.ccid = iface++;
EP_SIZE_TABLE.ccid = 64;

if (cfg_is_kbd_interface_enable() && ep <= EP_ADDR_MSK) {
DBG_MSG("Keyboard interface enabled, Iface %u\n", iface);
EP_TABLE.kbd_hid = ep;
IFACE_TABLE.kbd_hid = iface;
EP_SIZE_TABLE.kbd_hid = 8;
}
EP_TABLE.kbd_hid = ep;
IFACE_TABLE.kbd_hid = iface;
EP_SIZE_TABLE.kbd_hid = 8;
}

int device_atomic_compare_and_swap(volatile uint32_t *var, uint32_t expect, uint32_t update) {
Expand Down

0 comments on commit d2f8161

Please sign in to comment.