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

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

?? task.h

?? Modbus協議的源代碼 Modbus協議的源代碼、 Modbus協議的源代碼 Modbus協議的源代碼
?? H
?? 第 1 頁 / 共 3 頁
字號:
/*

	FreeRTOS.org V4.1.1 - Copyright (C) 2003-2006 Richard Barry.



	This file is part of the FreeRTOS.org distribution.



	FreeRTOS.org is free software; you can redistribute it and/or modify

	it under the terms of the GNU General Public License as published by

	the Free Software Foundation; either version 2 of the License, or

	(at your option) any later version.



	FreeRTOS.org is distributed in the hope that it will be useful,

	but WITHOUT ANY WARRANTY; without even the implied warranty of

	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

	GNU General Public License for more details.



	You should have received a copy of the GNU General Public License

	along with FreeRTOS.org; if not, write to the Free Software

	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA



	A special exception to the GPL can be applied should you wish to distribute

	a combined work that includes FreeRTOS.org, without being obliged to provide

	the source code for any proprietary components.  See the licensing section

	of http://www.FreeRTOS.org for full details of how and when the exception

	can be applied.



	***************************************************************************

	See http://www.FreeRTOS.org for documentation, latest information, license

	and contact details.  Please ensure to read the configuration and relevant

	port sections of the online documentation.

	***************************************************************************

*/



#ifndef TASK_H

#define TASK_H



#include "portable.h"

#include "list.h"



/*-----------------------------------------------------------

 * MACROS AND DEFINITIONS

 *----------------------------------------------------------*/



#define tskKERNEL_VERSION_NUMBER "V4.1.1"



/**

 * task. h

 *

 * Type by which tasks are referenced.  For example, a call to xTaskCreate

 * returns (via a pointer parameter) an xTaskHandle variable that can then

 * be used as a parameter to vTaskDelete to delete the task.

 *

 * \page xTaskHandle xTaskHandle

 * \ingroup Tasks

 */

typedef void * xTaskHandle;



/*

 * Used internally only.

 */

typedef struct xTIME_OUT

{

    portBASE_TYPE xOverflowCount;

    portTickType  xTimeOnEntering;

} xTimeOutType;



/*

 * Defines the priority used by the idle task.  This must not be modified.

 *

 * \ingroup TaskUtils

 */

#define tskIDLE_PRIORITY			( ( unsigned portBASE_TYPE ) 0 )



/**

 * task. h

 *

 * Macro for forcing a context switch.

 *

 * \page taskYIELD taskYIELD

 * \ingroup SchedulerControl

 */

#define taskYIELD()					portYIELD()



/**

 * task. h

 *

 * Macro to mark the start of a critical code region.  Preemptive context

 * switches cannot occur when in a critical region.

 *

 * NOTE: This may alter the stack (depending on the portable implementation)

 * so must be used with care!

 *

 * \page taskENTER_CRITICAL taskENTER_CRITICAL

 * \ingroup SchedulerControl

 */

#define taskENTER_CRITICAL()		portENTER_CRITICAL()



/**

 * task. h

 *

 * Macro to mark the end of a critical code region.  Preemptive context

 * switches cannot occur when in a critical region.

 *

 * NOTE: This may alter the stack (depending on the portable implementation)

 * so must be used with care!

 *

 * \page taskEXIT_CRITICAL taskEXIT_CRITICAL

 * \ingroup SchedulerControl

 */

#define taskEXIT_CRITICAL()			portEXIT_CRITICAL()



/**

 * task. h

 *

 * Macro to disable all maskable interrupts.

 *

 * \page taskDISABLE_INTERRUPTS taskDISABLE_INTERRUPTS

 * \ingroup SchedulerControl

 */

#define taskDISABLE_INTERRUPTS()	portDISABLE_INTERRUPTS()



/**

 * task. h

 *

 * Macro to enable microcontroller interrupts.

 *

 * \page taskENABLE_INTERRUPTS taskENABLE_INTERRUPTS

 * \ingroup SchedulerControl

 */

#define taskENABLE_INTERRUPTS()		portENABLE_INTERRUPTS()





/*-----------------------------------------------------------

 * TASK CREATION API

 *----------------------------------------------------------*/



/**

 * task. h

 *<pre>

 portBASE_TYPE xTaskCreate(

                              pdTASK_CODE pvTaskCode,

                              const portCHAR * const pcName,

                              unsigned portSHORT usStackDepth,

                              void *pvParameters,

                              unsigned portBASE_TYPE uxPriority,

                              xTaskHandle *pvCreatedTask

                          );</pre>

 *

 * Create a new task and add it to the list of tasks that are ready to run.

 *

 * @param pvTaskCode Pointer to the task entry function.  Tasks

 * must be implemented to never return (i.e. continuous loop).

 *

 * @param pcName A descriptive name for the task.  This is mainly used to

 * facilitate debugging.  Max length defined by tskMAX_TASK_NAME_LEN - default

 * is 16.

 *

 * @param usStackDepth The size of the task stack specified as the number of

 * variables the stack can hold - not the number of bytes.  For example, if

 * the stack is 16 bits wide and usStackDepth is defined as 100, 200 bytes

 * will be allocated for stack storage.

 *

 * @param pvParameters Pointer that will be used as the parameter for the task

 * being created.

 *

 * @param uxPriority The priority at which the task should run.

 *

 * @param pvCreatedTask Used to pass back a handle by which the created task

 * can be referenced.

 *

 * @return pdPASS if the task was successfully created and added to a ready

 * list, otherwise an error code defined in the file errors. h

 *

 * Example usage:

   <pre>

 // Task to be created.

 void vTaskCode( void * pvParameters )

 {

     for( ;; )

     {

         // Task code goes here.

     }

 }



 // Function that creates a task.

 void vOtherFunction( void )

 {

 unsigned char ucParameterToPass;

 xTaskHandle xHandle;

		

     // Create the task, storing the handle.

     xTaskCreate( vTaskCode, "NAME", STACK_SIZE, &ucParameterToPass, tskIDLE_PRIORITY, &xHandle );

		

     // Use the handle to delete the task.

     vTaskDelete( xHandle );

 }

   </pre>

 * \defgroup xTaskCreate xTaskCreate

 * \ingroup Tasks

 */

signed portBASE_TYPE xTaskCreate( pdTASK_CODE pvTaskCode, const signed portCHAR * const pcName, unsigned portSHORT usStackDepth, void *pvParameters, unsigned portBASE_TYPE uxPriority, xTaskHandle *pvCreatedTask );



/**

 * task. h

 * <pre>void vTaskDelete( xTaskHandle pxTask );</pre>

 *

 * INCLUDE_vTaskDelete must be defined as 1 for this function to be available.

 * See the configuration section for more information.

 *

 * Remove a task from the RTOS real time kernels management.  The task being

 * deleted will be removed from all ready, blocked, suspended and event lists.

 *

 * NOTE:  The idle task is responsible for freeing the kernel allocated

 * memory from tasks that have been deleted.  It is therefore important that

 * the idle task is not starved of microcontroller processing time if your

 * application makes any calls to vTaskDelete ().  Memory allocated by the

 * task code is not automatically freed, and should be freed before the task

 * is deleted.

 *

 * See the demo application file death.c for sample code that utilises

 * vTaskDelete ().

 *

 * @param pxTask The handle of the task to be deleted.  Passing NULL will

 * cause the calling task to be deleted.

 *

 * Example usage:

   <pre>

 void vOtherFunction( void )

 {

 xTaskHandle xHandle;

		

     // Create the task, storing the handle.

     xTaskCreate( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, &xHandle );

		

     // Use the handle to delete the task.

     vTaskDelete( xHandle );

 }

   </pre>

 * \defgroup vTaskDelete vTaskDelete

 * \ingroup Tasks

 */

void vTaskDelete( xTaskHandle pxTask );





/*-----------------------------------------------------------

 * TASK CONTROL API

 *----------------------------------------------------------*/



/**

 * task. h

 * <pre>void vTaskDelay( portTickType xTicksToDelay );</pre>

 *

 * Delay a task for a given number of ticks.  The actual time that the

 * task remains blocked depends on the tick rate.  The constant

 * portTICK_RATE_MS can be used to calculate real time from the tick

 * rate - with the resolution of one tick period.

 *

 * INCLUDE_vTaskDelay must be defined as 1 for this function to be available.

 * See the configuration section for more information.

 *

 * @param xTicksToDelay The amount of time, in tick periods, that

 * the calling task should block.

 *

 * Example usage:

   <pre>

 // Wait 10 ticks before performing an action.

 // NOTE:

 // This is for demonstration only and would be better achieved

 // using vTaskDelayUntil ().

 void vTaskFunction( void * pvParameters )

 {

 portTickType xDelay, xNextTime;



     // Calc the time at which we want to perform the action

     // next.

     xNextTime = xTaskGetTickCount () + ( portTickType ) 10;



     for( ;; )

     {

         xDelay = xNextTime - xTaskGetTickCount ();

         xNextTime += ( portTickType ) 10;



         // Guard against overflow

         if( xDelay <= ( portTickType ) 10 )

         {

             vTaskDelay( xDelay );

         }



         // Perform action here.

     }

 }

   </pre>

 * \defgroup vTaskDelay vTaskDelay

 * \ingroup TaskCtrl

 */

void vTaskDelay( portTickType xTicksToDelay );



/**

 * task. h

 * <pre>void vTaskDelayUntil( portTickType *pxPreviousWakeTime, portTickType xTimeIncrement );</pre>

 *

 * INCLUDE_vTaskDelayUntil must be defined as 1 for this function to be available.

 * See the configuration section for more information.

 *

 * Delay a task until a specified time.  This function can be used by cyclical

 * tasks to ensure a constant execution frequency.

 *

 * This function differs from vTaskDelay () in one important aspect:  vTaskDelay () will

 * cause a task to block for the specified number of ticks from the time vTaskDelay () is

 * called.  It is therefore difficult to use vTaskDelay () by itself to generate a fixed

 * execution frequency as the time between a task starting to execute and that task

 * calling vTaskDelay () may not be fixed [the task may take a different path though the

 * code between calls, or may get interrupted or preempted a different number of times

 * each time it executes].

 *

 * Whereas vTaskDelay () specifies a wake time relative to the time at which the function

 * is called, vTaskDelayUntil () specifies the absolute (exact) time at which it wishes to

 * unblock.

 *

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区久久久| 天天影视涩香欲综合网| 亚洲高清视频在线| 国产精品91xxx| 7777精品伊人久久久大香线蕉完整版| 久久久久久久久久美女| 亚洲1区2区3区4区| 91在线视频播放地址| 久久综合九色综合97_久久久| 亚洲国产精品一区二区久久恐怖片| 国产一区二区中文字幕| 欧美肥胖老妇做爰| 亚洲精品你懂的| 不卡视频在线观看| 国产午夜精品一区二区三区嫩草 | 精品一区二区三区视频| 欧美视频自拍偷拍| 亚洲柠檬福利资源导航| 国产成a人无v码亚洲福利| 日韩精品在线一区二区| 亚洲一二三区不卡| 日本高清视频一区二区| 日韩理论片网站| 91亚洲精品一区二区乱码| 中文字幕av一区二区三区高| 国产美女精品在线| 精品国产乱码久久久久久浪潮| 老汉av免费一区二区三区| 91麻豆精品国产自产在线观看一区| 亚洲一区二三区| 欧美无乱码久久久免费午夜一区| 亚洲综合一区在线| 欧美性生交片4| 亚洲国产日韩在线一区模特 | 成人黄色网址在线观看| 日本一区二区三区在线不卡| 国产成人午夜精品5599| 中文字幕av免费专区久久| 成人在线综合网| 亚洲图片欧美激情| 日本韩国欧美一区| 亚洲一二三四在线| 日韩视频一区二区三区| 精品一二三四区| 亚洲国产经典视频| 色综合中文字幕国产 | 亚洲欧洲精品成人久久奇米网| 成人黄色小视频在线观看| 综合在线观看色| 色婷婷综合久色| 婷婷综合五月天| xnxx国产精品| 99视频有精品| 五月婷婷欧美视频| 久久女同精品一区二区| 成人ar影院免费观看视频| 一区二区三区精品视频| 日韩一区二区三区高清免费看看 | fc2成人免费人成在线观看播放| 国产精品久久久久久户外露出| 91行情网站电视在线观看高清版| 亚洲第一狼人社区| 欧美成人一区二区三区片免费| 国产一区二区精品久久99| 中文字幕一区二区三中文字幕| 精品视频在线免费看| 久草在线在线精品观看| 中文字幕在线免费不卡| 日韩一区二区三区av| 丰满少妇在线播放bd日韩电影| 亚洲免费资源在线播放| 欧美videos大乳护士334| 成人sese在线| 免费观看一级欧美片| 国产精品久久国产精麻豆99网站| 在线国产亚洲欧美| 国产乱子伦视频一区二区三区 | 亚洲品质自拍视频网站| 欧美一区二区三区日韩视频| zzijzzij亚洲日本少妇熟睡| 性感美女极品91精品| 1区2区3区欧美| 久久久久国产精品人| 91精品国产欧美一区二区18| av在线一区二区三区| 精品一区二区三区在线观看| 亚洲国产精品久久人人爱蜜臀 | 国产91精品一区二区麻豆网站 | 不卡电影免费在线播放一区| 天天色天天操综合| 亚洲精品成人a在线观看| 久久久久国产精品麻豆| 欧美一级高清片| 欧美绝品在线观看成人午夜影视| 99re热视频精品| 风间由美性色一区二区三区| 国内精品久久久久影院薰衣草 | 亚洲综合精品久久| 国产精品理论在线观看| 国产性天天综合网| 欧美va在线播放| 日韩欧美成人午夜| 91精品国产欧美一区二区18| 欧美私模裸体表演在线观看| 色视频成人在线观看免| 99麻豆久久久国产精品免费优播| 国产精品99精品久久免费| 狠狠色丁香久久婷婷综合_中| 日韩国产精品久久| 婷婷夜色潮精品综合在线| 亚洲综合一区二区三区| 亚洲在线中文字幕| 一区二区三区日本| 一区二区三区在线视频观看58| 亚洲乱码国产乱码精品精可以看| 国产精品国模大尺度视频| 亚洲国产成人午夜在线一区| 国产精品高潮久久久久无| 国产精品国产三级国产aⅴ原创| 中文字幕精品三区| 亚洲女厕所小便bbb| 一区二区三区在线免费播放| 一区二区高清视频在线观看| 亚洲综合一二区| 日日摸夜夜添夜夜添亚洲女人| 三级欧美韩日大片在线看| 视频在线在亚洲| 国内精品久久久久影院薰衣草 | 中文字幕亚洲不卡| 伊人色综合久久天天人手人婷| 一区二区在线观看免费| 亚洲成人动漫在线观看| 免费一级片91| 国产一区二区三区免费看| kk眼镜猥琐国模调教系列一区二区| 99免费精品在线观看| 欧美色电影在线| 精品国产伦理网| 中文字幕日韩精品一区| 亚洲第一综合色| 国产美女av一区二区三区| 91丨porny丨户外露出| 7777精品伊人久久久大香线蕉的 | 午夜成人在线视频| 久久机这里只有精品| 成人免费观看av| 精品污污网站免费看| 欧美精品一区二区三区很污很色的 | 中文字幕欧美三区| 亚洲一区在线播放| 国产一区二区三区免费播放| 成人av片在线观看| 91精品欧美福利在线观看| 国产精品欧美一级免费| 天堂va蜜桃一区二区三区漫画版 | 中文字幕乱码一区二区免费| 一区二区在线观看免费| 免费观看30秒视频久久| 99久久精品免费精品国产| 91精品国产综合久久精品app | 日韩高清一级片| 成人黄色电影在线| 91精品啪在线观看国产60岁| 亚洲欧洲韩国日本视频 | 免费看日韩a级影片| 99re这里只有精品首页| 日韩欧美中文字幕公布| 亚洲精品免费播放| 成人免费视频一区| 欧美成人精品福利| 亚洲综合另类小说| 99视频精品全部免费在线| 精品福利二区三区| 日本麻豆一区二区三区视频| 欧美性做爰猛烈叫床潮| 1区2区3区精品视频| 国产成人精品午夜视频免费| 日韩一区二区三区免费观看| 亚洲国产精品一区二区www| 99国产精品视频免费观看| 国产日韩欧美一区二区三区乱码| 日韩中文字幕1| 欧美午夜精品久久久| 亚洲免费观看在线观看| 99免费精品视频| 国产精品欧美极品| 福利电影一区二区三区| 久久久久久久国产精品影院| 麻豆91在线观看| 在线成人午夜影院| 天天色天天操综合| 91精品免费在线| 日韩成人午夜电影| 日韩写真欧美这视频| 日本欧美一区二区三区| 欧美精品亚洲一区二区在线播放| 亚洲国产一区二区三区青草影视 | 精品国产区一区| 寂寞少妇一区二区三区| 精品国内二区三区|