shared/tinyusb: Expose mp_usbd_task as a public function.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2023-11-09 16:56:06 +11:00
parent 365913953a
commit d46dc5e173
3 changed files with 12 additions and 10 deletions

View File

@@ -29,6 +29,9 @@
#include "py/obj.h"
// Call this to explicitly run the TinyUSB device task.
void mp_usbd_task(void);
// Function to be implemented in port code.
// Can write a string up to MICROPY_HW_USB_DESC_STR_MAX characters long, plus terminating byte.
extern void mp_usbd_port_get_serial_number(char *buf);