use tu_static instead of static _fuzz_thread

This commit is contained in:
hathach
2023-02-22 16:23:40 +07:00
parent 557bf82336
commit 498989ee00
17 changed files with 56 additions and 56 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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