亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? poscfg.h

?? 來源于外國的開源rtos,用于小型mcu,支持優先級搶占調度
?? H
?? 第 1 頁 / 共 2 頁
字號:
/*
 *  Copyright (c) 2004-2005, Dennis Kuschel.
 *  All rights reserved. 
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions
 *  are met:
 *
 *   1. Redistributions of source code must retain the above copyright
 *      notice, this list of conditions and the following disclaimer.
 *   2. Redistributions in binary form must reproduce the above copyright
 *      notice, this list of conditions and the following disclaimer in the
 *      documentation and/or other materials provided with the distribution.
 *   3. The name of the author may not be used to endorse or promote
 *      products derived from this software without specific prior written
 *      permission. 
 *
 *  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
 *  OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 *  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 *  ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
 *  INDIRECT,  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 *  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 *  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 *  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 *  STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 *  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 *  OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 */


/**
 * @file    poscfg.h
 * @brief   pico]OS configuration file
 * @author  Dennis Kuschel
 *
 * This file is originally from the pico]OS realtime operating system
 * (http://picoos.sourceforge.net).
 *
 * CVS-ID $Id: poscfg.h,v 1.3 2005/02/01 21:02:18 dkuschel Exp $
 */


#ifndef _POSCFG_H
#define _POSCFG_H


/*---------------------------------------------------------------------------
 *  OS CORE SETTINGS
 *-------------------------------------------------------------------------*/

/** @defgroup coreset Configuration: OS Core Settings
 * @ingroup configp
 * @{
 */

/** Maximum count of priority levels.
 * This define limits the maximum count of available priority levels.
 * For the round robin scheduler, the maximum count is equal to ::MVAR_BITS.
 * For the standard scheduler, the maximum count cannot exceed ::MVAR_BITS ^ 2.
 */
#define POSCFG_MAX_PRIO_LEVEL   32

/** Maximum number of allowed tasks per priority level.
 * If the standard scheduler is used, this define automatically
 * defaults to 1, since the standard scheduler supports only
 * one task at each priority. If the round robin scheduling scheme
 * is used (the define ::POSCFG_ROUNDROBIN is set to 1), this define
 * limits the count of tasks that can be at the same priority.
 * The value for this definition must be a power of two and can
 * not exceed the count of bits set by ::MVAR_BITS.
 */
#define POSCFG_TASKS_PER_PRIO   2 

/** Maximum count of tasks.
 * This define sets the maximum count of task data structures which can be
 * allocated. Even if the define ::POSCFG_MAX_PRIO_LEVEL allows in conjunction
 * with ::POSCFG_TASKS_PER_PRIO more tasks, the maximum count of usable tasks
 * is limmited by this define. The value of this define can be in the
 * range 2..(::POSCFG_TASKS_PER_PRIO * ::POSCFG_MAX_PRIO_LEVEL). This define
 * should be set as small as possible to decrease memory usage. Remember
 * that the OS has a built in idle task that also needs a task structure.
 * @note If ::POSCFG_DYNAMIC_MEMORY and ::POSCFG_DYNAMIC_REFILL are both
 * set to 1, ::POSCFG_MAX_TASKS can be set to 0 since the system will
 * dynamically allocate memory for additional task structures if the volume
 * of tasks defined by ::POSCFG_MAX_TASKS is exhausted.
 */
#define POSCFG_MAX_TASKS       64

/** Maximum count of events.
 * This define sets the maximum count of event data structures which can be
 * allocated. Semaphores, Mutexes, Flags and Message Boxes are using this
 * event data structures. Keep the value of this define as small as possible
 * to decrease memory usage. Note that there is no maximum value this define
 * can have, the pico]OS supports an unlimmit count of events.
 * @note If ::POSCFG_DYNAMIC_MEMORY and ::POSCFG_DYNAMIC_REFILL are both
 * set to 1, ::POSCFG_MAX_EVENTS can be set to 0 since the system will
 * dynamically allocate memory for additional events if the volume of events
 * defined by ::POSCFG_MAX_EVENTS is exhausted.
 */
#define POSCFG_MAX_EVENTS       64

/** Maximum count of message buffers.
 * This definition sets the maximum count of message buffers that can be
 * allocated with ::posMessageAlloc. Note that if only pointers are posted
 * with ::posMessageSend (::POSCFG_MSG_MEMORY == 0), this define sets the
 * count of internal buffers (=messages) that can be pending in the messaging
 * system. To get maximum performance, the value should be set to twice the
 * count of tasks that are sending messages.
 * If ::POSCFG_FEATURE_MSGBOXES is set to 0, this define has no effect.
 * @note If ::POSCFG_DYNAMIC_MEMORY and ::POSCFG_DYNAMIC_REFILL are both
 * set to 1, ::POSCFG_MAX_MESSAGES can be set to 0 since the system will
 * dynamically allocate additional message buffers if the volume of buffers
 * defined by ::POSCFG_MAX_MESSAGES is exhausted.
 */
#define POSCFG_MAX_MESSAGES     1024

/** Maximum count of timers.
 * This define sets the maximum count of timers that can be allocated
 * with ::posTimerCreate. If ::POSCFG_FEATURE_TIMER is set to 0, this
 * define has no effect. Note that the value for this define
 * must be at least 1 if timers are enabled.
 * @note If ::POSCFG_DYNAMIC_MEMORY and ::POSCFG_DYNAMIC_REFILL are both
 * set to 1, ::POSCFG_MAX_TIMER can be set to 0 since the system will
 * dynamically allocate memory for additional timers if the volume of timers
 * defined by ::POSCFG_MAX_TIMER is exhausted.
 */
#define POSCFG_MAX_TIMER            32 

/** Set scheduling scheme.
 * The pico]OS supports two types of scheduling:<br>
 *
 * POSCFG_ROUNDROBIN = 0  sets the standard scheduling scheme, <br>
 * POSCFG_ROUNDROBIN = 1  enables the round robin scheduler.<br>
 *
 * For real time operation the standard scheduler is the best choice.
 * Standard scheduling means, that every task gets its own priority, at no
 * time two tasks can have the same priority. On a 8bit system you have a
 * maximum count of 8 x 8 = 64 tasks, with priority numbers 0 .. 63
 * where 0 is the  priority of the idle task and 63 is
 * the highest priority.<br>
 *
 * The round robin scheduler allows several tasks to have the same priority.
 * The number of tasks is limited by the count of bits the machine type
 * variable can hold (see define ::MVAR_BITS for details). The maximum count
 * of priority levels is also limited by ::MVAR_BITS. So on an 8bit system
 * you can have 8 priority levels with 8 tasks at each level, making 64
 * tasks in sum. The priority level 0 is the lowest, and the idle task runs
 * there. On priority 0 is space left for 7 user tasks. Priority 7 is the
 * highest priority. Note that on every priority level is done a round robin
 * scheduling, that means each task has the same right for execution.
 * No task is prefered. If a task gives of processing time, or its time slice
 * has expired, the next task at this priority is scheduled.
 */
#define POSCFG_ROUNDROBIN        1

/** Set soft multitasking.
 * By setting this define to 1, it is possible to soften the hard real time
 * scheduler. That means, a context switch is no more done every time an
 * event (such as semaphores or flags) is triggered, even if the signaled
 * task has a higher priority.
 * The signaled task will first start to run if the time slice of the
 * current task has expired or the task gives of processing time by itself
 * or the maximum count of signaled events is reached (see the definition
 * ::POSCFG_CTXSW_COMBINE for details, also the define
 * ::POSCFG_REALTIME_PRIO may interest you).
 * The purpose of soft multitasking is to reduce expensive context switches
 * to a minimum to get more processing time for the main work.
 */
#define POSCFG_SOFT_MTASK        1

/** Soft multitasking context switch combine counter trigger threshold.
 * Sets the number how often an event must be triggered to initiate a context
 * switch. This mechanism takes only effect when soft multitasking is enabled
 * (see definition ::POSCFG_SOFT_MTASK for details).
 * If the combine threshold is set to 0, a context switch will never
 * occure as result of triggering events.
 */
#define POSCFG_CTXSW_COMBINE    10

/** Realtime priority threshold for soft multitasking.
 * With this define some priority levels can be defined to be hard realtime,
 * even if soft multitasking is enabled. All priority levels equal to or
 * higher this value are scheduled in realtime.
 * If this value is set to 0, no priority levels are scheduled in realtime.
 * Note that this define takes only effect when ::POSCFG_SOFT_MTASK = 1
 * and ::POSCFG_ROUNDROBIN = 1.
 */
#define POSCFG_REALTIME_PRIO     0 //(POSCFG_MAX_PRIO_LEVEL-10)

/** When this define is set to a non-zero value, some user
 * available space is inserted into each task control block. The user
 * can call the function ::posTaskGetUserspace to get a pointer to the
 * user memory in the current tcb. Set this define to the number of bytes
 * you need to have in the task control block.
 */
#define POSCFG_TASKCB_USERSPACE  0

/** Enable the use of system supported message buffers.
 * By default, only buffer pointers can be posted with the messaging system.
 * If this definition is set to 1 (=enabled), the functions ::posMessageAlloc
 * and ::posMessageFree are supported to allow dynamic buffer allocation, and
 * real data with many bytes can be posted into the tasks message boxes.
 * Note: This requires that message boxes are enabled (the defintion
 * ::POSCFG_FEATURE_MSGBOXES must be set to 1).
 */
#define POSCFG_MSG_MEMORY        0

/** Size of message buffers in bytes.
 * If message boxes are enabled and ::POSCFG_MSG_MEMORY is set to 1,
 * this define sets the size of a message buffer. To keep the
 * operating system as simple as possible, only one fixed
 * buffer size is supported.
 */
#define POSCFG_MSG_BUFSIZE      80

/** Set number of software interrupts.
 * pico]OS has a built in mechanism to simulate software interrupts.
 * For example, software interrupts can be used to connect hardware
 * interrupts, that are outside the scope of pico]OS, to the realtime
 * operating system. A hardware interrupt will trigger a software
 * interrupt that can then signalize a semaphore object.
 * This define sets the number of software interrupts pico]OS will support.
 * @note  The define ::POSCFG_FEATURE_SOFTINTS must be set to 1 to have
 *        software interrupts compiled in.<br>
 *        If the nano-layer is linked to pico]OS, the lower four interrupts
 *        (numbers 0 through 3) are reserved for nano]OS. Make sure to set
 *        this define correctly (add 4) and do not use the lower 4
 *        interrupts in your application.
 */
#define POSCFG_SOFTINTERRUPTS    40

/** Set the number of software interrupts pico]OS shall be able to queue.
 * A software interrupt is executed each time the scheduler is called.
 * The scheduler runs at least with a rate of ::HZ times per second.
 * For example, if in your system 1000 software interrupts can happen
 * within a second, and the system tick rate is HZ = 100, set this define
 * at least to 10, else software interrupts could be lost. Since the
 * queue does not need much memory, it is saver to make the queue
 * longer than needed; I recommend twice the length calculated.
 * @note  The define ::POSCFG_FEATURE_SOFTINTS must be set to 1 to have
 *        software interrupts compiled in.
 */
#define POSCFG_SOFTINTQUEUELEN  40

/** @} */



/*---------------------------------------------------------------------------
 *  PERFORMANCE / CODE SIZE / DEBUG SETTINGS
 *-------------------------------------------------------------------------*/

/** @defgroup codestyle Configuration: Code style
 * @ingroup configp
 * @{
 */

/** 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          1 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲人吸女人奶水| 日韩精品高清不卡| 7777精品伊人久久久大香线蕉超级流畅 | 亚洲一区二区视频在线| 精品少妇一区二区| 在线视频亚洲一区| 国产精品一二三区| 日韩av不卡一区二区| 亚洲精品国产品国语在线app| xnxx国产精品| 欧美日韩成人综合| 91麻豆国产福利精品| 国产精品一区二区三区99| 五月激情丁香一区二区三区| 亚洲欧美在线视频观看| 久久久亚洲欧洲日产国码αv| 欧洲视频一区二区| 99久久精品久久久久久清纯| 国产一区二区网址| 喷水一区二区三区| 午夜视频在线观看一区二区三区| 中文在线一区二区| 精品国产伦理网| 欧美丰满少妇xxxxx高潮对白| 色综合天天综合在线视频| 国产成人精品免费一区二区| 久久99国产精品免费| 五月婷婷激情综合网| 一区二区三区国产豹纹内裤在线| 一区视频在线播放| 国产精品污污网站在线观看 | 亚洲精品亚洲人成人网 | 日韩一区欧美一区| 国产精品丝袜久久久久久app| 久久久久国产精品麻豆| 精品理论电影在线观看| www一区二区| 亚洲精品在线一区二区| 欧美大度的电影原声| 欧美成人一区二区三区在线观看| 日韩欧美中文字幕制服| 日韩午夜av一区| 久久综合久久99| 久久久高清一区二区三区| 精品奇米国产一区二区三区| 久久香蕉国产线看观看99| 精品国产制服丝袜高跟| 日本一区二区三区在线观看| 中文久久乱码一区二区| 亚洲欧美综合另类在线卡通| 亚洲欧美视频一区| 亚洲国产日韩综合久久精品| 亚洲成人综合在线| 免费不卡在线观看| 狠狠色综合日日| 国产不卡在线视频| 色婷婷国产精品| 91精品欧美久久久久久动漫| 精品国产成人在线影院| 欧美激情综合在线| 一区二区在线观看不卡| 亚洲成人在线免费| 久久99精品久久只有精品| 粉嫩aⅴ一区二区三区四区| 色综合天天综合色综合av | 欧美性极品少妇| 欧美一区二区三区男人的天堂| 精品国产一二三区| 成人免费在线播放视频| 日本午夜一区二区| 国产精品一区二区黑丝| 色婷婷综合中文久久一本| 欧美日韩国产综合久久| 久久麻豆一区二区| 亚洲自拍偷拍麻豆| 国内外精品视频| 91捆绑美女网站| 精品少妇一区二区三区在线播放 | 91精品国产综合久久久久久久久久| 欧美一级在线视频| 国产精品国产自产拍高清av王其| 亚洲制服欧美中文字幕中文字幕| 久久精品国产免费看久久精品| 成人爱爱电影网址| 91精品国产综合久久久久久久 | 秋霞电影一区二区| 成人精品国产免费网站| 777欧美精品| 自拍偷拍亚洲激情| 韩国精品在线观看| 色综合天天性综合| 精品国产91乱码一区二区三区 | 精品一区二区日韩| 在线观看精品一区| 国产亚洲视频系列| 天天综合天天做天天综合| 99久久国产综合精品色伊| 91精品欧美综合在线观看最新 | 亚洲国产综合视频在线观看| 国产剧情在线观看一区二区| 欧美三级中文字幕| 国产精品九色蝌蚪自拍| 国产呦精品一区二区三区网站| 欧美怡红院视频| 日韩理论片一区二区| 国产专区欧美精品| 91精品国产综合久久久久久漫画| 亚洲精品videosex极品| 国产91精品精华液一区二区三区 | 亚洲三级小视频| 国产精品伊人色| 精品国产电影一区二区| 美女视频黄免费的久久 | 国产女主播在线一区二区| 免费在线看成人av| 欧美日韩高清影院| 亚洲另类色综合网站| 一本色道久久综合精品竹菊 | 日韩电影在线看| 欧美蜜桃一区二区三区| 亚洲黄色av一区| 91浏览器入口在线观看| 国产精品女同一区二区三区| 国产伦精品一区二区三区视频青涩| 日韩手机在线导航| 日韩成人伦理电影在线观看| 制服丝袜亚洲网站| 图片区小说区区亚洲影院| 欧美日韩成人一区二区| 偷拍日韩校园综合在线| 欧美最猛性xxxxx直播| 亚洲成人免费在线观看| 欧美日韩一二区| 日韩中文字幕麻豆| 在线不卡欧美精品一区二区三区| 天天综合色天天| 欧美一区二区久久久| 精品一区二区三区免费毛片爱| 日韩欧美三级在线| 国产精一品亚洲二区在线视频| 欧美—级在线免费片| av在线不卡免费看| 一区二区三区不卡视频在线观看| 日本韩国一区二区| 亚洲国产精品天堂| 日韩欧美一区二区视频| 久久99精品久久久久久| 中文字幕va一区二区三区| av午夜一区麻豆| 亚洲小说欧美激情另类| 51精品久久久久久久蜜臀| 黄色日韩三级电影| 国产精品国产三级国产三级人妇 | 国产欧美精品在线观看| 91美女在线观看| 亚洲一区二区不卡免费| 欧美精品在线视频| 久久9热精品视频| 中文字幕欧美三区| 色欧美乱欧美15图片| 日本视频在线一区| 久久精品综合网| 色哟哟日韩精品| 久久国产精品99久久久久久老狼| 久久先锋影音av鲁色资源| 成人av网站在线观看免费| 亚洲福利一区二区| 欧美一区二区三区免费视频| 国产成人av电影在线播放| 中文字幕亚洲区| 日韩欧美综合在线| 波多野结衣91| 天堂久久久久va久久久久| 久久久久久久久久看片| 欧美综合久久久| 国产乱码精品一区二区三| 伊人色综合久久天天人手人婷| 精品国产污污免费网站入口 | 欧美一区二区三区四区高清| 国产精品66部| 亚洲va欧美va天堂v国产综合| 久久先锋资源网| 欧美日韩电影在线| 99在线视频精品| 久色婷婷小香蕉久久| 国产一区二区免费看| 看片的网站亚洲| 国产麻豆成人传媒免费观看| 国产一区999| 成人app在线观看| 色综合天天综合在线视频| 在线观看av一区二区| 欧美成人a在线| 亚洲视频小说图片| 午夜久久久久久久久久一区二区| 亚洲黄色av一区| 色综合久久久久综合99| 亚洲免费成人av| 欧美va日韩va| 欧美精品精品一区|