diff options
| author | hathach <[email protected]> | 2013-02-06 18:12:26 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-02-06 18:12:26 +0700 |
| commit | e6ed1729b252acaf2f4cd551586f942b8ab7549b (patch) | |
| tree | 079578615d314b1519fb6b615e17ab631012f76f /tinyusb/osal | |
| parent | 060c4b3b302f349d15db1d521e97e9b08e889c93 (diff) | |
update enumeration up to get full configuration descriptor
Diffstat (limited to 'tinyusb/osal')
| -rw-r--r-- | tinyusb/osal/osal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tinyusb/osal/osal.h b/tinyusb/osal/osal.h index 21f322ba9..6217c767d 100644 --- a/tinyusb/osal/osal.h +++ b/tinyusb/osal/osal.h @@ -96,6 +96,10 @@ typedef uint32_t osal_task_t; ASSERT_DEFINE(tusb_error_t status = (tusb_error_t)(sts),\ TUSB_ERROR_NONE == status, (void) 0, "%s", TUSB_ErrorStr[status]) +#define TASK_ASSERT_HANDLER(condition, func_call) \ + ASSERT_DEFINE_WITH_HANDLER(TASK_ASSERT_ERROR_HANDLER, func_call, ,\ + condition, (void) 0, "%s", "evaluated to false") + #define TASK_ASSERT(condition) ASSERT(condition, (void) 0) tusb_error_t osal_task_create(osal_task_t *task); |
