mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-20 22:20:55 +00:00
Use #define for OSAL_TIMEOUT_WAIT_FOREVER.
This commit is contained in:
parent
84a9715958
commit
06d7fdc228
@ -36,13 +36,12 @@
|
||||
|
||||
#include "common/tusb_common.h"
|
||||
|
||||
enum
|
||||
{
|
||||
OSAL_TIMEOUT_NOTIMEOUT = 0, // return immediately
|
||||
OSAL_TIMEOUT_NORMAL = 10, // default timeout
|
||||
};
|
||||
|
||||
static const uint32_t OSAL_TIMEOUT_WAIT_FOREVER = 0xFFFFFFFFUL;
|
||||
// Return immediately
|
||||
#define OSAL_TIMEOUT_NOTIMEOUT (0)
|
||||
// Default timeout
|
||||
#define OSAL_TIMEOUT_NORMAL (10)
|
||||
// Wait forever
|
||||
#define OSAL_TIMEOUT_WAIT_FOREVER (UINT32_MAX)
|
||||
|
||||
#define OSAL_TIMEOUT_CONTROL_XFER OSAL_TIMEOUT_WAIT_FOREVER
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user