mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-27 16:45:10 +02:00
Adding a secondary HID interface that emulates a keyboard.
With it, an app can send a password directly to the host, like it is typed by user. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -39,7 +39,8 @@
|
||||
|
||||
enum {
|
||||
#ifdef USB_ITF_HID
|
||||
ITF_HID,
|
||||
ITF_HID = 0,
|
||||
ITF_KEYBOARD,
|
||||
#endif
|
||||
#ifdef USB_ITF_CCID
|
||||
ITF_CCID,
|
||||
@@ -47,6 +48,11 @@ enum {
|
||||
ITF_TOTAL
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
REPORT_ID_KEYBOARD = 1,
|
||||
REPORT_ID_COUNT
|
||||
};
|
||||
|
||||
extern void usb_task();
|
||||
extern queue_t usb_to_card_q;
|
||||
|
||||
Reference in New Issue
Block a user