Multiple interfaces #412
Replies: 1 comment
-
Fix I have modified CFG_TUD_HID 3 in tusb_config_rp2040.h Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have tested the dual interfaces example and it works correctly. Now I am trying to configure RP2040 with three interfaces but it seems that it only detects the first two defined interfaces. One example of the code used is the following:
uint8_t const desc_hid_report[] =
{
TUD_HID_REPORT_DESC_KEYBOARD( HID_REPORT_ID(RID_KEYBOARD) ),
};
uint8_t const desc_hid2_report2[] =
{
TUD_HID_REPORT_DESC_KEYBOARD( HID_REPORT_ID(RID_KEYBOARD) ),
};
uint8_t const desc_system_report[] =
{
TUD_HID_REPORT_DESC_SYSTEM_CONTROL( HID_REPORT_ID(2) ),
TUD_HID_REPORT_DESC_CONSUMER( HID_REPORT_ID(1) ),
};
Adafruit_USBD_HID usb_hid(desc_hid_report, sizeof(desc_hid_report), HID_ITF_PROTOCOL_KEYBOARD, 2, false);
Adafruit_USBD_HID usb_hid2(desc_hid2_report2, sizeof(desc_hid2_report2), HID_ITF_PROTOCOL_KEYBOARD 2, false);
Adafruit_USBD_HID usb_keyboard(desc_system_report, sizeof(desc_system_report), HID_ITF_PROTOCOL_NONE, 2, false);
usb_hid.begin();
usb_hid2.begin();
usb_keyboard.begin();
Is it possible to configure this with 3 or more interfaces?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions