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

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

?? integer.c

?? 最新版FreeRTOS, 包擴多種開發平臺的移植
?? C
字號:
/*
	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.
	***************************************************************************
*/

/*
 * This version of integer. c is for use on systems that have limited stack
 * space and no display facilities.  The complete version can be found in
 * the Demo/Common/Full directory.
 *
 * As with the full version, the tasks created in this file are a good test 
 * of the scheduler context switch mechanism.  The processor has to access 
 * 32bit variables in two or four chunks (depending on the processor).  The low 
 * priority of these tasks means there is a high probability that a context 
 * switch will occur mid calculation.  See flop. c documentation for 
 * more information.
 *
 */

/*
Changes from V1.2.1

	+ The constants used in the calculations are larger to ensure the
	  optimiser does not truncate them to 16 bits.

Changes from V1.2.3

	+ uxTaskCheck is now just used as a boolean.  Instead of incrementing
	  the variable each cycle of the task, the variable is simply set to
	  true.  sAreIntegerMathsTaskStillRunning() sets it back to false and
	  expects it to have been set back to true by the time it is called
	  again.
	+ A division has been included in the calculation.
*/

#include <stdlib.h>

/* Scheduler include files. */
#include "FreeRTOS.h"
#include "task.h"

/* Demo program include files. */
#include "integer.h"

/* The constants used in the calculation. */
#define intgCONST1				( ( portLONG ) 123 )
#define intgCONST2				( ( portLONG ) 234567 )
#define intgCONST3				( ( portLONG ) -3 )
#define intgCONST4				( ( portLONG ) 7 )
#define intgEXPECTED_ANSWER		( ( ( intgCONST1 + intgCONST2 ) * intgCONST3 ) / intgCONST4 )

#define intgSTACK_SIZE			configMINIMAL_STACK_SIZE

/* As this is the minimal version, we will only create one task. */
#define intgNUMBER_OF_TASKS		( 1 )

/* The task function.  Repeatedly performs a 32 bit calculation, checking the
result against the expected result.  If the result is incorrect then the
context switch must have caused some corruption. */
static portTASK_FUNCTION_PROTO( vCompeteingIntMathTask, pvParameters );

/* Variables that are set to true within the calculation task to indicate
that the task is still executing.  The check task sets the variable back to
false, flagging an error if the variable is still false the next time it
is called. */
static volatile signed portBASE_TYPE xTaskCheck[ intgNUMBER_OF_TASKS ] = { ( signed portBASE_TYPE ) pdFALSE };

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

void vStartIntegerMathTasks( unsigned portBASE_TYPE uxPriority )
{
portSHORT sTask;

	for( sTask = 0; sTask < intgNUMBER_OF_TASKS; sTask++ )
	{
		xTaskCreate( vCompeteingIntMathTask, ( signed portCHAR * ) "IntMath", intgSTACK_SIZE, ( void * ) &( xTaskCheck[ sTask ] ), uxPriority, ( xTaskHandle * ) NULL );
	}
}
/*-----------------------------------------------------------*/

static portTASK_FUNCTION( vCompeteingIntMathTask, pvParameters )
{
/* These variables are all effectively set to constants so they are volatile to
ensure the compiler does not just get rid of them. */
volatile portLONG lValue;
portSHORT sError = pdFALSE;
volatile signed portBASE_TYPE *pxTaskHasExecuted;

	/* Set a pointer to the variable we are going to set to true each
	iteration.  This is also a good test of the parameter passing mechanism
	within each port. */
	pxTaskHasExecuted = ( volatile signed portBASE_TYPE * ) pvParameters;

	/* Keep performing a calculation and checking the result against a constant. */
	for( ;; )
	{
		/* Perform the calculation.  This will store partial value in
		registers, resulting in a good test of the context switch mechanism. */
		lValue = intgCONST1;
		lValue += intgCONST2;

		/* Yield in case cooperative scheduling is being used. */
		#if configUSE_PREEMPTION == 0
		{
			taskYIELD();
		}
		#endif

		/* Finish off the calculation. */
		lValue *= intgCONST3;
		lValue /= intgCONST4;

		/* If the calculation is found to be incorrect we stop setting the 
		TaskHasExecuted variable so the check task can see an error has 
		occurred. */
		if( lValue != intgEXPECTED_ANSWER ) /*lint !e774 volatile used to prevent this being optimised out. */
		{
			sError = pdTRUE;
		}

		if( sError == pdFALSE )
		{
			/* We have not encountered any errors, so set the flag that show
			we are still executing.  This will be periodically cleared by
			the check task. */
			portENTER_CRITICAL();
				*pxTaskHasExecuted = pdTRUE;
			portEXIT_CRITICAL();
		}

		/* Yield in case cooperative scheduling is being used. */
		#if configUSE_PREEMPTION == 0
		{
			taskYIELD();
		}
		#endif
	}
}
/*-----------------------------------------------------------*/

/* This is called to check that all the created tasks are still running. */
portBASE_TYPE xAreIntegerMathsTaskStillRunning( void )
{
portBASE_TYPE xReturn = pdTRUE;
portSHORT sTask;

	/* Check the maths tasks are still running by ensuring their check variables 
	are still being set to true. */
	for( sTask = 0; sTask < intgNUMBER_OF_TASKS; sTask++ )
	{
		if( xTaskCheck[ sTask ] == pdFALSE )
		{
			/* The check has not incremented so an error exists. */
			xReturn = pdFALSE;
		}

		/* Reset the check variable so we can tell if it has been set by
		the next time around. */
		xTaskCheck[ sTask ] = pdFALSE;
	}

	return xReturn;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
zzijzzij亚洲日本少妇熟睡| 国产午夜亚洲精品羞羞网站| 亚洲免费av高清| 91美女在线看| 亚洲一区二区三区四区的| 色成年激情久久综合| 亚洲综合精品自拍| 欧美性猛交xxxx乱大交退制版| 亚洲精品中文在线观看| 欧美性videosxxxxx| 日韩国产欧美在线播放| 欧美成人福利视频| 久久99久久久欧美国产| 国产天堂亚洲国产碰碰| 91网页版在线| 亚洲3atv精品一区二区三区| 91麻豆精品国产91久久久 | 国产三级三级三级精品8ⅰ区| 国产精品资源网站| 国产精品久久夜| 91国在线观看| 免费成人av在线| 国产精品三级视频| 91久久奴性调教| 免费成人美女在线观看.| 国产日韩亚洲欧美综合| 99re热视频这里只精品| 五月婷婷久久综合| 久久久久久日产精品| 色综合色综合色综合色综合色综合 | 黄网站免费久久| 中文字幕一区二区日韩精品绯色| 欧美日本在线播放| 国产精品一二三四五| 亚洲精品你懂的| 欧美不卡激情三级在线观看| 成人不卡免费av| 日韩高清不卡一区二区| 国产精品高潮久久久久无| 欧美丰满少妇xxxbbb| 国产v日产∨综合v精品视频| 亚洲图片欧美色图| 国产喂奶挤奶一区二区三区| 欧美女孩性生活视频| 丁香五精品蜜臀久久久久99网站| 亚洲国产精品一区二区久久| 久久久久久久久99精品| 欧美日韩视频在线观看一区二区三区| 狠狠v欧美v日韩v亚洲ⅴ| 亚洲精品视频观看| 国产欧美日韩在线视频| 欧美一区二区在线观看| 99综合电影在线视频| 久久成人18免费观看| 亚洲综合一区二区三区| 国产欧美精品区一区二区三区 | 不卡的看片网站| 精品在线免费观看| 亚洲成av人**亚洲成av**| 中文在线免费一区三区高中清不卡| 欧美日韩视频在线第一区| 99热精品国产| 成人黄色在线网站| 韩国理伦片一区二区三区在线播放| 亚洲成人7777| 亚洲欧洲综合另类| 欧美激情一区在线观看| 日韩亚洲国产中文字幕欧美| 欧美日韩在线播| 91久久免费观看| eeuss鲁片一区二区三区在线看| 国产最新精品免费| 美腿丝袜亚洲色图| 日韩激情一二三区| 首页国产欧美日韩丝袜| 五月综合激情婷婷六月色窝| 一区二区三区日韩精品视频| 国产精品的网站| 国产精品萝li| 中文字幕在线一区| 国产精品国产精品国产专区不蜜 | 欧美视频在线一区二区三区| 91丨九色丨蝌蚪富婆spa| 不卡视频免费播放| 99国产麻豆精品| 91女厕偷拍女厕偷拍高清| 91在线丨porny丨国产| 床上的激情91.| 丁香婷婷综合色啪| av不卡免费电影| 一本大道久久a久久综合婷婷| 色综合婷婷久久| 欧美又粗又大又爽| 欧美日韩国产精品成人| 欧美日韩和欧美的一区二区| 欧美男生操女生| 精品国产免费人成电影在线观看四季 | 久久久久久麻豆| 欧美国产日韩a欧美在线观看| 久久精品视频在线看| 中文字幕的久久| 亚洲欧美日韩人成在线播放| 亚洲狠狠丁香婷婷综合久久久| 亚洲图片欧美综合| 免费国产亚洲视频| 国产精品一区在线观看你懂的| 大白屁股一区二区视频| 在线视频欧美区| 欧美理论电影在线| 精品乱人伦小说| 国产精品人妖ts系列视频| 亚洲女与黑人做爰| 亚洲一区二区成人在线观看| 日产欧产美韩系列久久99| 免费精品99久久国产综合精品| 国产精品99久久久久| eeuss鲁一区二区三区| 欧美乱妇15p| 日韩精品影音先锋| 国产精品传媒视频| 日本91福利区| 成人免费视频一区| 欧美电影一区二区三区| 日本一区二区动态图| 午夜精品久久久久久久久久久 | www.日韩大片| 91精品视频网| 国产精品污网站| 日本在线不卡视频一二三区| 国产91色综合久久免费分享| 欧美色中文字幕| 久久精品水蜜桃av综合天堂| 一区二区三区欧美| 久草中文综合在线| 欧洲一区二区三区在线| 国产偷v国产偷v亚洲高清| 午夜精彩视频在线观看不卡| 成人黄色国产精品网站大全在线免费观看 | 欧美性感一类影片在线播放| 国产网站一区二区三区| 日本va欧美va精品发布| 色婷婷久久久亚洲一区二区三区| 精品国产1区二区| 亚洲成人自拍一区| 国产成人激情av| 欧美一区二区福利视频| 一区二区三区中文字幕精品精品| 精品在线亚洲视频| 欧美精选一区二区| 日韩毛片在线免费观看| 狠狠色综合色综合网络| 欧美精品色一区二区三区| 最近日韩中文字幕| 国产成人午夜视频| 久久综合久色欧美综合狠狠| 视频在线在亚洲| 91在线一区二区三区| 国产午夜亚洲精品不卡| 黄色资源网久久资源365| 欧美一个色资源| 日韩在线一二三区| 欧美三级日韩在线| 一区二区三区欧美| 色菇凉天天综合网| 亚洲精品视频免费看| 91丝袜高跟美女视频| 亚洲欧洲精品一区二区精品久久久| 国精品**一区二区三区在线蜜桃| 日韩欧美电影一区| 另类小说综合欧美亚洲| 欧美一区二区精品在线| 免费观看久久久4p| 日韩一级二级三级精品视频| 日韩激情中文字幕| 91精品国产综合久久小美女| 天天综合色天天| 在线成人免费视频| 免费成人在线播放| 亚洲精品一区二区三区影院| 麻豆一区二区在线| 久久综合av免费| 国产精品一区二区久激情瑜伽| 久久亚洲影视婷婷| 国产大陆精品国产| 最近中文字幕一区二区三区| 色综合久久久久| 一区二区免费看| 欧美三级电影网| 美脚の诱脚舐め脚责91| 亚洲精品一区二区三区福利| 韩国精品一区二区| 国产精品女主播在线观看| 91看片淫黄大片一级在线观看| 亚洲乱码国产乱码精品精98午夜| 91黄色免费版| 久久综合综合久久综合| 国产女同性恋一区二区| 91老司机福利 在线| 日本在线播放一区二区三区| 2023国产精品|