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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? main.c

?? MCS-51的一個(gè)Free小型操作系統(tǒng),在KeilC中下編譯工作
?? C
字號(hào):
/*
	FreeRTOS.org V4.1.3 - 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.
	***************************************************************************
*/

/*
Changes from V3.0.0

Changes from V3.0.1
*/

/*
 * Instead of the normal single demo application, the PIC18F demo is split 
 * into several smaller programs of which this is the fourth.  This enables the 
 * demo's to be executed on the RAM limited PIC-devices.
 *
 * The Demo4 project is configured for a PIC18F4620 device.  Main.c starts 11 
 * tasks (including the idle task). See the indicated files in the demo/common
 * directory for more information.
 *
 * demo/common/minimal/integer.c:	Creates 1 task
 * demo/common/minimal/dynamic.c:	Creates 5 tasks
 * demo/common/minimal/flash.c:		Creates 3 tasks
 *
 * Main.c also creates a check task.  This periodically checks that all the 
 * other tasks are still running and have not experienced any unexpected 
 * results.  If all the other tasks are executing correctly an LED is flashed 
 * once every mainCHECK_PERIOD milliseconds.  If any of the tasks have not 
 * executed, or report an error, the frequency of the LED flash will increase 
 * to mainERROR_FLASH_RATE.
 *
 * On entry to main an 'X' is transmitted.  Monitoring the serial port using a
 * dumb terminal allows for verification that the device is not continuously 
 * being reset (no more than one 'X' should be transmitted).
 *
 * http://www.FreeRTOS.org contains important information on the use of the 
 * wizC PIC18F port.
 */

/* Scheduler include files. */
#include <FreeRTOS.h>
#include <task.h>

/* Demo app include files. */
#include "integer.h"
#include "dynamic.h"
#include "flash.h"
#include "partest.h"
#include "serial.h"

/* The period between executions of the check task before and after an error
has been discovered.  If an error has been discovered the check task runs
more frequently - increasing the LED flash rate. */
#define mainNO_ERROR_CHECK_PERIOD	( ( portTickType ) 10000 / portTICK_RATE_MS )
#define mainERROR_CHECK_PERIOD		( ( portTickType )  1000 / portTICK_RATE_MS )
#define mainCHECK_TASK_LED			( ( unsigned portCHAR ) 3 )

/* Priority definitions for some of the tasks.  Other tasks just use the idle
priority. */
#define mainCHECK_TASK_PRIORITY	( tskIDLE_PRIORITY + ( unsigned portCHAR ) 3 )
#define mainLED_FLASH_PRIORITY	( tskIDLE_PRIORITY + ( unsigned portCHAR ) 2 )
#define mainINTEGER_PRIORITY	( tskIDLE_PRIORITY + ( unsigned portCHAR ) 0 )

/* Constants required for the communications.  Only one character is ever 
transmitted. */
#define mainCOMMS_QUEUE_LENGTH		( ( unsigned portCHAR ) 5 )
#define mainNO_BLOCK				( ( portTickType ) 0 )
#define mainBAUD_RATE				( ( unsigned portLONG ) 57600 )

/*
 * The task function for the "Check" task.
 */
static portTASK_FUNCTION_PROTO( vErrorChecks, pvParameters );

/*
 * Checks the unique counts of other tasks to ensure they are still operational.
 * Returns pdTRUE if an error is detected, otherwise pdFALSE.
 */
static portCHAR prvCheckOtherTasksAreStillRunning( void );

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

/* Creates the tasks, then starts the scheduler. */
void main( void )
{
	/* Initialise the required hardware. */
	vParTestInitialise();

	/* Send a character so we have some visible feedback of a reset. */
	xSerialPortInitMinimal( mainBAUD_RATE, mainCOMMS_QUEUE_LENGTH );
	xSerialPutChar( NULL, 'X', mainNO_BLOCK );

	/* Start the standard demo tasks found in the demo\common directory. */
	vStartIntegerMathTasks( mainINTEGER_PRIORITY);
	vStartDynamicPriorityTasks();
	vStartLEDFlashTasks( mainLED_FLASH_PRIORITY );

	/* Start the check task defined in this file. */
	xTaskCreate( vErrorChecks, ( const portCHAR * const ) "Check", portMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );

	/* Start the scheduler.  Will never return here. */
	vTaskStartScheduler( );

	while(1)	/* This point should never be reached. */
	{
	}
}
/*-----------------------------------------------------------*/

static portTASK_FUNCTION( vErrorChecks, pvParameters )
{
	portTickType xLastCheckTime;
	portTickType xDelayTime = mainNO_ERROR_CHECK_PERIOD;
	portCHAR cErrorOccurred;

	/* We need to initialise xLastCheckTime prior to the first call to 
	vTaskDelayUntil(). */
	xLastCheckTime = xTaskGetTickCount();
	
	/* Cycle for ever, delaying then checking all the other tasks are still
	operating without error. */
	for( ;; )
	{
		/* Wait until it is time to check the other tasks again. */
		vTaskDelayUntil( &xLastCheckTime, xDelayTime );

		/* Check all the other tasks are running, and running without ever
		having an error. */
		cErrorOccurred = prvCheckOtherTasksAreStillRunning();

		/* If an error was detected increase the frequency of the LED flash. */
		if( cErrorOccurred == pdTRUE )
		{
			xDelayTime = mainERROR_CHECK_PERIOD;
		}

		/* Flash the LED for visual feedback. */
		vParTestToggleLED( mainCHECK_TASK_LED );
	}
}

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

static portCHAR prvCheckOtherTasksAreStillRunning( void )
{
	portCHAR cErrorHasOccurred = ( portCHAR ) pdFALSE;

	if( xAreIntegerMathsTaskStillRunning() != pdTRUE )
	{
		cErrorHasOccurred = ( portCHAR ) pdTRUE;
	}

	if( xAreDynamicPriorityTasksStillRunning() != pdTRUE )
	{
		cErrorHasOccurred = ( portCHAR ) pdTRUE;
	}

	return cErrorHasOccurred;
}
/*-----------------------------------------------------------*/


?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久99精品久久久久久 | 国产精品欧美经典| 国产成人av在线影院| 亚洲欧洲性图库| 91精品国产麻豆国产自产在线 | 欧美一区二区三区免费| 国产.欧美.日韩| 亚洲观看高清完整版在线观看| 日韩丝袜美女视频| 国产一区二区导航在线播放| 国产精品视频yy9299一区| 欧美三级韩国三级日本三斤| 国产精品一区免费在线观看| 亚洲午夜av在线| 欧美激情中文不卡| 91精品一区二区三区在线观看| 国产成a人亚洲| 亚洲国产精品久久不卡毛片| 久久久久久久久久久久久女国产乱| 色婷婷综合久久久中文一区二区 | 亚洲乱码国产乱码精品精98午夜 | 精品国产乱码久久久久久久| 91丨九色丨黑人外教| 视频一区欧美精品| 亚洲色图欧洲色图| 亚洲视频你懂的| 日韩一区二区三区在线| 日本道精品一区二区三区 | 国产成人av电影在线| 亚洲图片欧美一区| 欧美国产一区在线| 欧美日韩精品福利| av一区二区三区在线| 久久91精品国产91久久小草| 午夜精品视频在线观看| 依依成人精品视频| 国产精品每日更新| 久久婷婷一区二区三区| 欧美一区二区三区四区久久| 欧美性受xxxx| av电影天堂一区二区在线| 美女性感视频久久| 日韩电影在线一区| 天堂午夜影视日韩欧美一区二区| 亚洲欧美日韩人成在线播放| 欧美精品一区二区三区蜜臀| 日韩一区二区三区视频| 欧美日本高清视频在线观看| 欧美在线观看你懂的| 国产精品77777| 精品一区二区日韩| 久久99国产精品久久| 韩国v欧美v日本v亚洲v| 男人的天堂亚洲一区| 丝袜亚洲另类欧美| 日韩精品乱码av一区二区| 午夜亚洲国产au精品一区二区| 亚洲一级二级三级| 亚洲婷婷国产精品电影人久久| 国产精品美女久久久久av爽李琼| 久久精品夜色噜噜亚洲aⅴ| 精品国产一区二区三区久久影院 | 美脚の诱脚舐め脚责91 | 蜜桃视频免费观看一区| 五月天婷婷综合| 日韩电影免费一区| 精品中文字幕一区二区小辣椒| 久久精品久久99精品久久| 麻豆久久久久久久| 黄页网站大全一区二区| 国产成人免费视频一区| 成a人片国产精品| 国产成人精品一区二区三区网站观看| 国产成人在线观看免费网站| 成人av在线一区二区三区| 91免费在线视频观看| 欧美三级中文字幕在线观看| 欧美一级免费大片| 精品少妇一区二区三区免费观看 | 国产欧美日产一区| 精品99999| 久久久不卡网国产精品一区| 一区二区三区四区视频精品免费 | 欧美日韩精品专区| 欧美成人激情免费网| 中文字幕乱码久久午夜不卡| 亚洲精品中文字幕乱码三区| 日韩国产欧美在线观看| 精品在线免费观看| 播五月开心婷婷综合| 欧美日韩中文另类| 日韩一区二区免费在线电影| 国产视频911| 一区二区三区毛片| 久久国产精品99久久久久久老狼| 成人黄色小视频| 欧美日韩在线播放一区| 精品国产露脸精彩对白| 亚洲美女屁股眼交| 久久99国产精品尤物| 91网站最新网址| 欧美成人video| 亚洲视频一二区| 亚洲成人av一区二区| 蜜臀a∨国产成人精品| 不卡免费追剧大全电视剧网站| 宅男在线国产精品| 久久精品欧美日韩| 亚洲综合久久av| 国产91高潮流白浆在线麻豆| 欧美日韩一级视频| 亚洲国产高清在线观看视频| 五月婷婷激情综合| av不卡在线播放| 久久这里只有精品首页| 一区二区三区日韩在线观看| 国产资源精品在线观看| 欧美日韩午夜影院| 国产精品素人一区二区| 激情综合色播激情啊| 日本精品视频一区二区三区| 国产三级一区二区| 亚洲一区影音先锋| k8久久久一区二区三区| 欧美一区二区视频在线观看2022| 亚洲私人影院在线观看| 国产伦精品一区二区三区免费| 欧美日韩三级在线| 国产精品国产精品国产专区不片| 麻豆精品一区二区三区| 欧美日韩在线观看一区二区 | 男男视频亚洲欧美| 91精品婷婷国产综合久久性色| 亚洲午夜免费电影| 欧美亚洲国产一区二区三区| 亚洲一区视频在线| 欧美在线影院一区二区| 亚洲午夜一区二区| 欧美伦理视频网站| 日本亚洲视频在线| 91精品国产综合久久香蕉的特点| 日韩综合一区二区| 欧美一级二级三级乱码| 看片网站欧美日韩| 精品国产伦理网| 色综合中文字幕国产 | 日韩精品一区二区三区视频播放 | 亚洲精品老司机| 在线观看成人免费视频| 午夜欧美在线一二页| 这里只有精品电影| 精品一区二区三区免费观看| 欧美精品一区二| 成人免费看视频| 亚洲精品第1页| 7777精品伊人久久久大香线蕉的| 日本成人在线视频网站| 2024国产精品| 99久久久免费精品国产一区二区| 亚洲乱码国产乱码精品精的特点| 欧美午夜精品久久久久久孕妇| 天天做天天摸天天爽国产一区| 日韩一级完整毛片| 国产成a人无v码亚洲福利| 亚洲男人的天堂在线aⅴ视频| 欧美一a一片一级一片| 蜜乳av一区二区三区| 欧美国产激情二区三区| 欧美午夜一区二区三区免费大片| 蜜桃av一区二区三区电影| 国产精品日日摸夜夜摸av| 色网站国产精品| 久久精品国产99国产| 国产精品护士白丝一区av| 欧美日韩1234| 国产成人久久精品77777最新版本| 亚洲精品自拍动漫在线| 日韩一区二区精品在线观看| av在线播放不卡| 日韩电影网1区2区| 国产精品乱码久久久久久| 欧美日韩在线三区| 懂色av一区二区在线播放| 亚洲成人免费影院| 亚洲国产成人午夜在线一区| 在线成人av网站| www.99精品| 久久国产精品99久久久久久老狼| 亚洲丝袜另类动漫二区| 精品久久久久久无| 欧美在线色视频| 粗大黑人巨茎大战欧美成人| 日本大胆欧美人术艺术动态| 中文字幕一区二区5566日韩| 欧美成人bangbros| 欧美性感一区二区三区| 成人午夜在线免费| 久久成人久久爱| 午夜精品一区在线观看| 成人免费一区二区三区在线观看|