mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
Merge pull request #324 from hathach/add-custom-osal
allow application to implement its own os
This commit is contained in:
commit
9df2a9ba43
@ -53,6 +53,8 @@ typedef void (*osal_task_func_t)( void * );
|
|||||||
#include "osal_freertos.h"
|
#include "osal_freertos.h"
|
||||||
#elif CFG_TUSB_OS == OPT_OS_MYNEWT
|
#elif CFG_TUSB_OS == OPT_OS_MYNEWT
|
||||||
#include "osal_mynewt.h"
|
#include "osal_mynewt.h"
|
||||||
|
#elif CFG_TUSB_OS == OPT_OS_CUSTOM
|
||||||
|
#include "tusb_os_custom.h" // implemented by application
|
||||||
#else
|
#else
|
||||||
#error OS is not supported yet
|
#error OS is not supported yet
|
||||||
#endif
|
#endif
|
||||||
|
@ -93,9 +93,10 @@
|
|||||||
/** \defgroup group_supported_os Supported RTOS
|
/** \defgroup group_supported_os Supported RTOS
|
||||||
* \ref CFG_TUSB_OS must be defined to one of these
|
* \ref CFG_TUSB_OS must be defined to one of these
|
||||||
* @{ */
|
* @{ */
|
||||||
#define OPT_OS_NONE 1 ///< No RTOS
|
#define OPT_OS_NONE 1 ///< No RTOS
|
||||||
#define OPT_OS_FREERTOS 2 ///< FreeRTOS
|
#define OPT_OS_FREERTOS 2 ///< FreeRTOS
|
||||||
#define OPT_OS_MYNEWT 3 ///< Mynewt OS
|
#define OPT_OS_MYNEWT 3 ///< Mynewt OS
|
||||||
|
#define OPT_OS_CUSTOM 4 ///< Custom OS is implemented by application
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user