mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-27 20:37:30 +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"
|
#include "common/tusb_common.h"
|
||||||
|
|
||||||
enum
|
// Return immediately
|
||||||
{
|
#define OSAL_TIMEOUT_NOTIMEOUT (0)
|
||||||
OSAL_TIMEOUT_NOTIMEOUT = 0, // return immediately
|
// Default timeout
|
||||||
OSAL_TIMEOUT_NORMAL = 10, // default timeout
|
#define OSAL_TIMEOUT_NORMAL (10)
|
||||||
};
|
// Wait forever
|
||||||
|
#define OSAL_TIMEOUT_WAIT_FOREVER (UINT32_MAX)
|
||||||
static const uint32_t OSAL_TIMEOUT_WAIT_FOREVER = 0xFFFFFFFFUL;
|
|
||||||
|
|
||||||
#define OSAL_TIMEOUT_CONTROL_XFER OSAL_TIMEOUT_WAIT_FOREVER
|
#define OSAL_TIMEOUT_CONTROL_XFER OSAL_TIMEOUT_WAIT_FOREVER
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user