add timeout to queue_receive and update test code for it

This commit is contained in:
hathach
2013-02-01 12:39:39 +07:00
parent aab92b40d2
commit c24d461d19
4 changed files with 31 additions and 10 deletions

View File

@@ -61,8 +61,8 @@
enum
{
OSAL_TIMEOUT_NOTIMEOUT = 0, // for use within ISR, return immediately
OSAL_TIMEOUT_WAIT_FOREVER = 1,
OSAL_TIMEOUT_NORMAL = 10 // default is 10 msec
OSAL_TIMEOUT_NORMAL = 10, // default is 10 msec
OSAL_TIMEOUT_WAIT_FOREVER = 0xFFFF0000
};
typedef enum {