diff options
Diffstat (limited to 'src/osal/osal.h')
| -rw-r--r-- | src/osal/osal.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/osal/osal.h b/src/osal/osal.h index ea655d4f1..e30f9159a 100644 --- a/src/osal/osal.h +++ b/src/osal/osal.h @@ -1,4 +1,4 @@ -/*
+/*
* The MIT License (MIT)
*
* Copyright (c) 2019 Ha Thach (tinyusb.org)
@@ -53,6 +53,8 @@ typedef void (*osal_task_func_t)( void * ); #include "osal_freertos.h"
#elif CFG_TUSB_OS == OPT_OS_MYNEWT
#include "osal_mynewt.h"
+#elif CFG_TUSB_OS == OPT_OS_EMBOS
+ #include "osal_embos.h"
#else
#error OS is not supported yet
#endif
@@ -62,6 +64,10 @@ typedef void (*osal_task_func_t)( void * ); //--------------------------------------------------------------------+
static inline void osal_task_delay(uint32_t msec);
+//------------- Interrupt -------------//
+static inline void osal_enter_interrupt(void);
+static inline void osal_leave_interrupt(void);
+
//------------- Semaphore -------------//
static inline osal_semaphore_t osal_semaphore_create(osal_semaphore_def_t* semdef);
static inline bool osal_semaphore_post(osal_semaphore_t sem_hdl, bool in_isr);
|
