use tu_static instead of static _fuzz_thread
This commit is contained in:
@@ -39,7 +39,7 @@ struct State {
|
||||
uint8_t address;
|
||||
};
|
||||
|
||||
static _fuzz_thread State state = {false, 0, 0};
|
||||
tu_static State state = {false, 0, 0};
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// Controller API
|
||||
|
@@ -44,7 +44,7 @@
|
||||
// Invoked when received GET DEVICE DESCRIPTOR
|
||||
// Application return pointer to descriptor
|
||||
uint8_t const *tud_descriptor_device_cb(void) {
|
||||
static _fuzz_thread tusb_desc_device_t const desc_device = {
|
||||
tu_static tusb_desc_device_t const desc_device = {
|
||||
.bLength = sizeof(tusb_desc_device_t),
|
||||
.bDescriptorType = TUSB_DESC_DEVICE,
|
||||
.bcdUSB = USB_BCD,
|
||||
@@ -184,7 +184,7 @@ char const *string_desc_arr[] = {
|
||||
|
||||
};
|
||||
|
||||
static _fuzz_thread uint16_t _desc_str[32];
|
||||
tu_static uint16_t _desc_str[32];
|
||||
|
||||
// Invoked when received GET STRING DESCRIPTOR request
|
||||
// Application return pointer to descriptor, whose contents must exist long
|
||||
|
@@ -45,7 +45,7 @@
|
||||
// Invoked when received GET DEVICE DESCRIPTOR
|
||||
// Application return pointer to descriptor
|
||||
uint8_t const *tud_descriptor_device_cb(void) {
|
||||
static _fuzz_thread tusb_desc_device_t const desc_device = {
|
||||
tu_static tusb_desc_device_t const desc_device = {
|
||||
.bLength = sizeof(tusb_desc_device_t),
|
||||
.bDescriptorType = TUSB_DESC_DEVICE,
|
||||
.bcdUSB = USB_BCD,
|
||||
@@ -189,7 +189,7 @@ char const *string_desc_arr[] = {
|
||||
"TinyUSB CDC", // 4: CDC Interface
|
||||
};
|
||||
|
||||
static _fuzz_thread uint16_t _desc_str[32];
|
||||
tu_static uint16_t _desc_str[32];
|
||||
|
||||
// Invoked when received GET STRING DESCRIPTOR request
|
||||
// Application return pointer to descriptor, whose contents must exist long
|
||||
|
Reference in New Issue
Block a user