mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-01 10:20:38 +00:00
missing some files
This commit is contained in:
parent
03ec49450d
commit
bcf5e5f729
test/fuzz
@ -39,7 +39,7 @@ struct State {
|
|||||||
uint8_t address;
|
uint8_t address;
|
||||||
};
|
};
|
||||||
|
|
||||||
TU_STATIC State state = {false, 0, 0};
|
static _fuzz_thread State state = {false, 0, 0};
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// Controller API
|
// Controller API
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
// Invoked when received GET DEVICE DESCRIPTOR
|
// Invoked when received GET DEVICE DESCRIPTOR
|
||||||
// Application return pointer to descriptor
|
// Application return pointer to descriptor
|
||||||
uint8_t const *tud_descriptor_device_cb(void) {
|
uint8_t const *tud_descriptor_device_cb(void) {
|
||||||
TU_STATIC tusb_desc_device_t const desc_device = {
|
static _fuzz_thread tusb_desc_device_t const desc_device = {
|
||||||
.bLength = sizeof(tusb_desc_device_t),
|
.bLength = sizeof(tusb_desc_device_t),
|
||||||
.bDescriptorType = TUSB_DESC_DEVICE,
|
.bDescriptorType = TUSB_DESC_DEVICE,
|
||||||
.bcdUSB = USB_BCD,
|
.bcdUSB = USB_BCD,
|
||||||
@ -184,7 +184,7 @@ char const *string_desc_arr[] = {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
TU_STATIC uint16_t _desc_str[32];
|
static _fuzz_thread uint16_t _desc_str[32];
|
||||||
|
|
||||||
// Invoked when received GET STRING DESCRIPTOR request
|
// Invoked when received GET STRING DESCRIPTOR request
|
||||||
// Application return pointer to descriptor, whose contents must exist long
|
// Application return pointer to descriptor, whose contents must exist long
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
// Invoked when received GET DEVICE DESCRIPTOR
|
// Invoked when received GET DEVICE DESCRIPTOR
|
||||||
// Application return pointer to descriptor
|
// Application return pointer to descriptor
|
||||||
uint8_t const *tud_descriptor_device_cb(void) {
|
uint8_t const *tud_descriptor_device_cb(void) {
|
||||||
TU_STATIC tusb_desc_device_t const desc_device = {
|
static _fuzz_thread tusb_desc_device_t const desc_device = {
|
||||||
.bLength = sizeof(tusb_desc_device_t),
|
.bLength = sizeof(tusb_desc_device_t),
|
||||||
.bDescriptorType = TUSB_DESC_DEVICE,
|
.bDescriptorType = TUSB_DESC_DEVICE,
|
||||||
.bcdUSB = USB_BCD,
|
.bcdUSB = USB_BCD,
|
||||||
@ -189,7 +189,7 @@ char const *string_desc_arr[] = {
|
|||||||
"TinyUSB CDC", // 4: CDC Interface
|
"TinyUSB CDC", // 4: CDC Interface
|
||||||
};
|
};
|
||||||
|
|
||||||
TU_STATIC uint16_t _desc_str[32];
|
static _fuzz_thread uint16_t _desc_str[32];
|
||||||
|
|
||||||
// Invoked when received GET STRING DESCRIPTOR request
|
// Invoked when received GET STRING DESCRIPTOR request
|
||||||
// Application return pointer to descriptor, whose contents must exist long
|
// Application return pointer to descriptor, whose contents must exist long
|
||||||
|
Loading…
x
Reference in New Issue
Block a user