summaryrefslogtreecommitdiff
path: root/tinyusb/osal
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-06-27 03:20:14 +0700
committerhathach <[email protected]>2013-06-27 03:20:14 +0700
commitc81c4bb817925f385b45c46857b3f0630edb99ed (patch)
treedd5abf6ca10c6f5dd9119ab00c0c3e44d2af2c87 /tinyusb/osal
parentea2e63a332a0d46971f32bd84c84851c2246fe8c (diff)
add set idle request for hidh_open_subtask
add interface number to hidh_interface_info_t refractor hidh_open_subtask to be a true subtask cannot run with set idle code ON because of semaphore misuse
Diffstat (limited to 'tinyusb/osal')
-rw-r--r--tinyusb/osal/osal_none.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tinyusb/osal/osal_none.h b/tinyusb/osal/osal_none.h
index 07ebd1f99..936513d1b 100644
--- a/tinyusb/osal/osal_none.h
+++ b/tinyusb/osal/osal_none.h
@@ -93,6 +93,7 @@ static inline volatile uint32_t osal_tick_get(void)
#define OSAL_TASK_FUNCTION(task_func) \
tusb_error_t task_func
+
#define TASK_RESTART \
state = 0
@@ -144,6 +145,7 @@ static inline volatile uint32_t osal_tick_get(void)
ASSERT_DEFINE_WITH_HANDLER(_SUBTASK_ASSERT_ERROR_HANDLER, func_call, tusb_error_t status = (tusb_error_t)(sts),\
TUSB_ERROR_NONE == status, status, "%s", TUSB_ErrorStr[status])
+// TODO allow to specify error return
#define SUBTASK_ASSERT(condition) \
ASSERT_DEFINE_WITH_HANDLER(_SUBTASK_ASSERT_ERROR_HANDLER, , , \
(condition), TUSB_ERROR_OSAL_TASK_FAILED, "%s", "evaluated to false")