diff options
| author | Ha Thach <[email protected]> | 2023-02-22 17:35:07 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-22 17:35:07 +0700 |
| commit | 8fadaf01d3cb8d833ff427a7bd3c369a6d0937fc (patch) | |
| tree | 192d7e73278bef02ae7d576e8ba52fff4cdd1069 /src/class/usbtmc | |
| parent | 557bf82336311611ba3b06e57f48d03362f3d2c3 (diff) | |
| parent | 498989ee009c388a770e7a312ae04d0a51ba745a (diff) | |
Merge pull request #1919 from hathach/use-tu-static-for-fuzz
use tu_static instead of static _fuzz_thread
Diffstat (limited to 'src/class/usbtmc')
| -rw-r--r-- | src/class/usbtmc/usbtmc_device.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/class/usbtmc/usbtmc_device.c b/src/class/usbtmc/usbtmc_device.c index 416cb9bb9..a4e6eaeb3 100644 --- a/src/class/usbtmc/usbtmc_device.c +++ b/src/class/usbtmc/usbtmc_device.c @@ -78,7 +78,7 @@ #ifdef xDEBUG #include "uart_util.h" -static _fuzz_thread char logMsg[150]; +tu_static char logMsg[150]; #endif // Buffer size must be an exact multiple of the max packet size for both @@ -143,7 +143,7 @@ typedef struct usbtmc_capabilities_specific_t const * capabilities; } usbtmc_interface_state_t; -CFG_TUSB_MEM_SECTION static _fuzz_thread usbtmc_interface_state_t usbtmc_state = +CFG_TUSB_MEM_SECTION tu_static usbtmc_interface_state_t usbtmc_state = { .itf_id = 0xFF, }; @@ -154,8 +154,8 @@ TU_VERIFY_STATIC(USBTMCD_BUFFER_SIZE >= 32u,"USBTMC dev buffer size too small"); static bool handle_devMsgOutStart(uint8_t rhport, void *data, size_t len); static bool handle_devMsgOut(uint8_t rhport, void *data, size_t len, size_t packetLen); -static _fuzz_thread uint8_t termChar; -static _fuzz_thread uint8_t termCharRequested = false; +tu_static uint8_t termChar; +tu_static uint8_t termCharRequested = false; #if OSAL_MUTEX_REQUIRED static OSAL_MUTEX_DEF(usbtmcLockBuffer); |
