⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 poscfg.h

📁 picoos源码。The RTOS and the TCP/IP stack will be built automatically.
💻 H
📖 第 1 页 / 共 2 页
字号:
 */

/** Configure code speed.
 * Set this define to 1 to get a fast code. Very much code lines are then
 * inlined instead of doing subroutine calls. Note that the fastest possible
 * code is generated when also the define ::POSCFG_SMALLCODE is set to 0.
 */
#define POSCFG_FASTCODE          0 

/** Configure code size.
 * Set this define to 1 to get a small code. This only touches some pico]OS
 * features, so expect not too much. Note that the smallest possible
 * code is generated when also the define ::POSCFG_FASTCODE is set to 0.
 */
#define POSCFG_SMALLCODE         1

/** Function argument checking.
 * There are three methods of argument checking:<br>
 *
 * <b>Type 0 </b><br>
 * Don't do any argument checking. This speeds up the code but
 * corrupted parameters would not be detected and could crash the
 * system. This is only recommandet for well tested embedded systems.<br>
 *
 * <b>Type 1 </b><br>
 * Do a minimum set of argument checking. For example, NULL pointers
 * will be detected. This is recommanded for a release version
 * of the operating system.<br>
 *
 * <b>Type 2 </b><br>
 * Do the full set of argument checking, including magic number tests
 * in internal data structures. This is the recommanded setting for
 * a debug version of the operating system.<br>
 */
#ifdef _DBG
#define POSCFG_ARGCHECK          2
#else
#define POSCFG_ARGCHECK          1
#endif

/** @} */



/*---------------------------------------------------------------------------
 *  DEFINE FEATURES TO INCLUDE
 *-------------------------------------------------------------------------*/

/** @defgroup feature Configuration: Features
 * @ingroup configp
 * @{
 */

/** Include function ::posTaskYield.
 * If this definition is set to 1, the function ::posTaskYield will
 * be included into the pico]OS kernel.
 */
#define POSCFG_FEATURE_YIELD         1

/** Include function ::posTaskSleep.
 * If this definition is set to 1, the function ::posTaskSleep will
 * be included into the pico]OS kernel.
 */
#define POSCFG_FEATURE_SLEEP         1

/** Include function ::posTaskExit.
 * If this definition is set to 1, the function ::posTaskExit will
 * be included into the pico]OS kernel.
 */
#define POSCFG_FEATURE_EXIT          1

/** Include function ::posTaskGetPriority.
 * If this definition is set to 1, the function ::posTaskGetPriority will
 * be included into the pico]OS kernel.
 */
#define POSCFG_FEATURE_GETPRIORITY   1

/** Include function ::posTaskSetPriority.
 * If this definition is set to 1, the function ::posTaskSetPriority will
 * be included into the pico]OS kernel.
 */
#define POSCFG_FEATURE_SETPRIORITY   1

/** Include semaphore functions.
 * If this definition is set to 1, the semaphore functions are
 * added to the user API.
 */
#define POSCFG_FEATURE_SEMAPHORES    1

/** Include function ::posSemaDestroy.
 * If this definition is set to 1, the function ::posSemaDestroy will
 * be included into the pico]OS kernel. Note that also
 * ::POSCFG_FEATURE_SEMAPHORES must be set to 1.
 */
#define POSCFG_FEATURE_SEMADESTROY   1

/** Include function ::posSemaWait.
 * If this definition is set to 1, the function ::posSemaWait will
 * be included into the pico]OS kernel. Note that also
 * ::POSCFG_FEATURE_SEMAPHORES must be set to 1.
 */
#define POSCFG_FEATURE_SEMAWAIT      1

/** Include mutex functions.
 * If this definition is set to 1, the mutex functions are
 * added to the user API.
 */
#define POSCFG_FEATURE_MUTEXES       1

/** Include function ::posMutexDestroy.
 * If this definition is set to 1, the function ::posMutexDestroy will
 * be included into the pico]OS kernel. Note that also
 * ::POSCFG_FEATURE_MUTEXES must be set to 1.
 */
#define POSCFG_FEATURE_MUTEXDESTROY  1

/** Include function ::posMutexTryLock.
 * If this definition is set to 1, the function ::posMutexTryLock will
 * be included into the pico]OS kernel. Note that also
 * ::POSCFG_FEATURE_MUTEXES must be set to 1.
 */
#define POSCFG_FEATURE_MUTEXTRYLOCK  1

/** Include function ::posTaskGetCurrent.
 * If this definition is set to 1, the function ::posTaskGetCurrent will
 * be included into the pico]OS kernel.
 */
#define POSCFG_FEATURE_GETTASK       1

/** Include function ::posTaskUnused.
 * If this definition is set to 1, the function ::posTaskUnused will
 * be included into the pico]OS kernel.
 */
#define POSCFG_FEATURE_TASKUNUSED    1

/** Include message box functions.
 * If this definition is set to 1, the message box functions are
 * added to the user API.
 */
#define POSCFG_FEATURE_MSGBOXES      1

/** Include function ::posMessageWait.
 * If this definition is set to 1, the function ::posMessageWait will
 * be included into the pico]OS kernel. Note that also
 * ::POSCFG_FEATURE_MSGBOXES must be set to 1.
 */
#define POSCFG_FEATURE_MSGWAIT       1

/** Include functions ::posTaskSchedLock and ::posTaskSchedUnlock.
 * If this definition is set to 1, the functions ::posTaskSchedLock
 * and ::posTaskSchedUnlock will be included into the pico]OS kernel.
 */
#define POSCFG_FEATURE_INHIBITSCHED  1

/** Include ::jiffies timer variable.
 * If this definition is set to 1, the ::jiffies timer variable
 * will be available.
 */
#define POSCFG_FEATURE_JIFFIES       1

/** Include timer functions.
 * If this definition is set to 1, the timer functions are
 * added to the user API.
 */
#define POSCFG_FEATURE_TIMER         1

/** Include function ::posTimerDestroy.
 * If this definition is set to 1, the function ::posTimerDestroy will
 * be included into the pico]OS kernel. Note that also
 * ::POSCFG_FEATURE_TIMER must be set to 1.
 */
#define POSCFG_FEATURE_TIMERDESTROY  1

/** Include function ::posTimerFired.
 * If this definition is set to 1, the function ::posTimerFired will
 * be included into the pico]OS kernel. Note that also
 * ::POSCFG_FEATURE_TIMER must be set to 1.
 */
#define POSCFG_FEATURE_TIMERFIRED    1

/** Include flags functions.
 * If this definition is set to 1, the flags functions are
 * added to the user API.
 */
#define POSCFG_FEATURE_FLAGS         1

/** Include function ::posFlagDestroy.
 * If this definition is set to 1, the function ::posFlagDestroy will
 * be included into the pico]OS kernel. Note that also
 * ::POSCFG_FEATURE_FLAGS must be set to 1.
 */
#define POSCFG_FEATURE_FLAGDESTROY   1

/** Include function ::posFlagWait.
 * If this definition is set to 1, the function ::posFlagWait will
 * be included into the pico]OS kernel. Note that also
 * ::POSCFG_FEATURE_FLAGS must be set to 1.
 */
#define POSCFG_FEATURE_FLAGWAIT      1

/** Include software interrupt functions.
 * If this definition is set to 1, the software interrupt functions are
 * added to the user API.
 */
#define POSCFG_FEATURE_SOFTINTS      1

/** Include function ::posSoftIntDelHandler.
 * If this definition is set to 1, the function ::posSoftIntDelHandler
 * will be included into the pico]OS kernel. Note that also
 * ::POSCFG_FEATURE_SOFTINTS must be set to 1.
 */
#define POSCFG_FEATURE_SOFTINTDEL    1

/** Include function ::posInstallIdleTaskHook.
 * If this definition is set to 1, the function ::posInstallIdleTaskHook
 * will be added to the user API.
 */
#define POSCFG_FEATURE_IDLETASKHOOK  1

/** Enable atomic variable support.
 * If this definition is set to 1, the functions needed for accessing
 * atomic variables will be added to the user API.
 */
#define POSCFG_FEATURE_ATOMICVAR     1

/** Provide a task global error state variable.
 * If this definition is set to 1, the ::errno variable is supported.
 */
#define POSCFG_FEATURE_ERRNO         1

/** Enable list support.
 * If this definition is set to 1, the list functions are
 * added to the user API.
 */
#define POSCFG_FEATURE_LISTS         1

/** Include function ::posListJoin.
 * If this definition is set to 1, the function ::posListJoin will
 * be included into the pico]OS kernel. Note that also
 * ::POSCFG_FEATURE_LISTS must be set to 1.
 */
#define POSCFG_FEATURE_LISTJOIN      1

/** Include function ::posListLen.
 * If this definition is set to 1, the function ::posListLen will
 * be included into the pico]OS kernel. Note that also
 * ::POSCFG_FEATURE_LISTS must be set to 1.
 */
#define POSCFG_FEATURE_LISTLEN       1

/** Enable the debug help.
 * If this definition is set to 1, pico]OS exports the global
 * variables ::picodeb_tasklist and ::picodeb_eventlist that
 * may help you debugging your code using an in-circuit debugger
 * with appropriated IDE.
 */
#define POSCFG_FEATURE_DEBUGHELP     0

/** @} */


/*---------------------------------------------------------------------------
 *  ADDITIONAL USER SETTINGS FOR THE ARM PORT
 *-------------------------------------------------------------------------*/

#endif /* _POSCFG_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -