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

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

?? task.h

?? 一個開源的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一区二区三区免费野_久草精品视频
伊人性伊人情综合网| 国产一区二区三区四| 国产精品 欧美精品| 欧美妇女性影城| 亚洲午夜久久久久中文字幕久| 久久99精品视频| 久久久久久一二三区| 性久久久久久久久| 欧美美女一区二区在线观看| 亚洲影院在线观看| 色播五月激情综合网| 亚洲 欧美综合在线网络| 欧美疯狂性受xxxxx喷水图片| 欧美视频一区二区在线观看| **性色生活片久久毛片| 国产91露脸合集magnet | 亚洲国产精品天堂| 欧美三级电影在线看| 日本午夜精品一区二区三区电影| 日本伦理一区二区| 蜜桃av一区二区三区电影| 日韩写真欧美这视频| 国产99久久久国产精品免费看| 日本一区二区三区在线观看| www.亚洲激情.com| 亚洲一区二区三区四区不卡| 久久婷婷国产综合精品青草 | 亚洲sss视频在线视频| 日韩视频免费直播| 91网上在线视频| 久久超级碰视频| 亚洲va在线va天堂| 国产蜜臀97一区二区三区 | 欧美日韩美少妇| 国产综合色精品一区二区三区| 国产精品乱码一区二三区小蝌蚪| 欧美日韩国产色站一区二区三区| 寂寞少妇一区二区三区| 依依成人综合视频| 欧美激情一区二区三区全黄| 91精品国产综合久久国产大片 | 亚洲精品va在线观看| 日韩三级视频中文字幕| 欧美性受xxxx黑人xyx性爽| 国产成人精品亚洲日本在线桃色| 亚洲丝袜美腿综合| 中文字幕高清一区| 欧美一区二区在线视频| 色偷偷一区二区三区| 成人天堂资源www在线| 石原莉奈一区二区三区在线观看 | 91麻豆精品在线观看| 日本特黄久久久高潮| 午夜精品久久久久久不卡8050| 1区2区3区国产精品| 中文字幕免费观看一区| 久久久亚洲综合| 国产精品成人免费在线| 国产亚洲欧美一级| 国产亚洲一区字幕| 国产亚洲精品aa| 亚洲国产精品成人综合| 国产午夜精品一区二区| 久久精品人人爽人人爽| 久久精子c满五个校花| 久久综合五月天婷婷伊人| 久久综合视频网| 日本一区二区三区高清不卡| 久久久久久免费毛片精品| 国产精品毛片无遮挡高清| 久久久久久一二三区| 中文在线一区二区| 亚洲国产cao| 国产做a爰片久久毛片| 99久久国产综合精品色伊 | 成人va在线观看| 欧美系列在线观看| 日韩欧美国产三级电影视频| 欧美激情综合五月色丁香小说| 亚洲一区在线观看视频| 日本v片在线高清不卡在线观看| 国产老肥熟一区二区三区| 99久久精品国产观看| 欧美日韩国产一级片| 国产精品美女久久久久久久久| 亚洲国产精品久久人人爱| 成人永久aaa| 国产精品国产馆在线真实露脸| 2023国产一二三区日本精品2022| 国产精品久久久久久久蜜臀| 天天亚洲美女在线视频| k8久久久一区二区三区| 日韩欧美中文一区二区| 亚洲一区国产视频| 成人少妇影院yyyy| 精品国产自在久精品国产| 丝袜亚洲另类欧美| 99久久婷婷国产| 欧美国产一区在线| 国产福利一区二区三区视频在线| 欧美精品一二三四| 日韩精品久久理论片| 色嗨嗨av一区二区三区| 亚洲女性喷水在线观看一区| 不卡欧美aaaaa| 亚洲伦理在线精品| 色综合久久天天| 国产精品久久久久久久久免费桃花| 午夜精品久久久久久久蜜桃app| 91片在线免费观看| 一区二区三区在线观看视频| 91行情网站电视在线观看高清版| 一区二区三区四区av| 在线精品观看国产| 日韩精品成人一区二区三区| 91麻豆精品国产91久久久久久| 奇米色777欧美一区二区| 欧美xxx久久| 99免费精品在线观看| 亚洲精品成人a在线观看| 欧美一级黄色大片| 国产成人午夜视频| 一区二区三区欧美久久| 欧美大片在线观看| 99久久精品情趣| 亚洲成a人v欧美综合天堂下载| 日韩精品一区二区三区四区视频 | 91片在线免费观看| 日本在线不卡一区| 久久婷婷综合激情| 精品视频999| 不卡一区二区中文字幕| 日韩在线观看一区二区| 自拍偷拍欧美精品| 26uuu成人网一区二区三区| 99久久婷婷国产综合精品| 奇米影视一区二区三区| 亚洲综合免费观看高清在线观看 | 91黄色免费观看| 成人在线视频首页| 国内精品国产三级国产a久久| 一区二区免费在线| 亚洲欧美日韩在线| 久久久久久久国产精品影院| 欧美一区二区私人影院日本| 日本韩国一区二区| 99视频一区二区| 不卡在线观看av| 成人app下载| av一二三不卡影片| av一区二区不卡| 99天天综合性| 91搞黄在线观看| 欧洲精品一区二区三区在线观看| 91在线观看下载| av一区二区三区在线| 99re这里只有精品视频首页| 99国产精品视频免费观看| 99re这里只有精品首页| 在线亚洲免费视频| 色老汉av一区二区三区| 日韩欧美的一区| 欧美一级午夜免费电影| 26uuu欧美| 亚洲一区二区三区激情| 日韩国产成人精品| 国产69精品一区二区亚洲孕妇| 国产成人av电影在线观看| 91亚洲精品久久久蜜桃网站| 一本色道综合亚洲| 日韩视频一区二区三区在线播放| 久久久欧美精品sm网站| 一区二区三区高清在线| 男人的j进女人的j一区| 国产成人99久久亚洲综合精品| 国产不卡在线播放| 不卡视频一二三| 精品视频一区二区不卡| 欧美电视剧免费全集观看| 国产日韩欧美在线一区| 亚洲色欲色欲www| 偷窥少妇高潮呻吟av久久免费| 欧美日本一区二区| 99久久亚洲一区二区三区青草| 91麻豆国产香蕉久久精品| 91香蕉视频黄| 日韩免费高清电影| 亚洲欧洲日韩在线| 老司机精品视频导航| 91浏览器打开| 久久综合九色综合欧美就去吻 | 亚洲视频精选在线| 日韩国产欧美视频| 91亚洲资源网| 欧美激情中文字幕一区二区| 免费成人在线播放| 91成人免费网站| 国产日韩欧美a| 奇米色一区二区| 欧美日本一道本|