diff options
Diffstat (limited to 'tinyusb/osal')
| -rw-r--r-- | tinyusb/osal/osal.h | 9 | ||||
| -rw-r--r-- | tinyusb/osal/osal_none.h | 8 |
2 files changed, 6 insertions, 11 deletions
diff --git a/tinyusb/osal/osal.h b/tinyusb/osal/osal.h index 95e36f7b4..4dbeabc11 100644 --- a/tinyusb/osal/osal.h +++ b/tinyusb/osal/osal.h @@ -56,11 +56,6 @@ #include "tusb_option.h"
#include "common/common.h"
-/*------------- Task -------------*/
-
-/*------------- Queue -------------*/
-
-
#if TUSB_CFG_OS == TUSB_OS_NONE
#include "osal_none.h"
@@ -72,8 +67,8 @@ #error TUSB_CFG_OS is not defined or OS is not supported yet
#endif
- #define OSAL_TASK_LOOP_BEGIN while(1) {
- #define OSAL_TASK_LOOP_END }
+ #define OSAL_TASK_BEGIN while(1) {
+ #define OSAL_TASK_END }
//------------- Sub Task -------------//
#define OSAL_SUBTASK_BEGIN
diff --git a/tinyusb/osal/osal_none.h b/tinyusb/osal/osal_none.h index 469722ec7..378a3a6f6 100644 --- a/tinyusb/osal/osal_none.h +++ b/tinyusb/osal/osal_none.h @@ -63,7 +63,7 @@ uint32_t tusb_tick_get(void); // retain value before/after such services needed to declare as static
// OSAL_TASK_LOOP
// {
-// OSAL_TASK_LOOP_BEGIN
+// OSAL_TASK_BEGIN
//
// task body statements
//
@@ -82,14 +82,14 @@ static inline osal_task_t osal_task_create(osal_func_t code, const char* name, u #define TASK_RESTART \
state = 0
-#define OSAL_TASK_LOOP_BEGIN \
+#define OSAL_TASK_BEGIN \
ATTR_UNUSED static uint32_t timeout = 0;\
static uint16_t state = 0;\
(void) timeout; /* timemout can possible unsued */ \
switch(state) { \
case 0: { \
-#define OSAL_TASK_LOOP_END \
+#define OSAL_TASK_END \
default:\
TASK_RESTART;\
}}\
@@ -117,7 +117,7 @@ static inline osal_task_t osal_task_create(osal_func_t code, const char* name, u }\
}while(0)
-#define OSAL_SUBTASK_BEGIN OSAL_TASK_LOOP_BEGIN
+#define OSAL_SUBTASK_BEGIN OSAL_TASK_BEGIN
#define OSAL_SUBTASK_END \
default:\
TASK_RESTART;\
|
