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

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

?? main.c

?? MCS-51的一個Free小型操作系統(tǒng),在KeilC中下編譯工作
?? C
字號:
/*
	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 fifth.  This enables the 
 * demo's to be executed on the RAM limited PIC-devices.
 *
 * The Demo5 project is configured for a PIC18F4620 device.  Main.c starts 13 
 * tasks (including the idle task). See the indicated files in the demo/common
 * directory for more information.
 *
 * demo/common/minimal/flop.c:		Creates 8 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 "flop.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 ) 2 )
#define mainLED_FLASH_PRIORITY	( tskIDLE_PRIORITY + ( unsigned portCHAR ) 1 )

/* 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 a few of the standard demo tasks found in the demo\common directory. */
	vStartMathTasks( tskIDLE_PRIORITY );
	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( xAreMathsTaskStillRunning() != pdTRUE )
	{
		cErrorHasOccurred = ( portCHAR ) pdTRUE;
	}
	return cErrorHasOccurred;
}
/*-----------------------------------------------------------*/


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品人成在线观看免费| 亚洲欧美日韩中文播放| 欧美性大战久久久| kk眼镜猥琐国模调教系列一区二区| 九九久久精品视频| 久久av资源站| 国内精品视频666| 国产精品中文字幕日韩精品| 国产美女视频一区| 成人免费视频一区二区| 9色porny自拍视频一区二区| 99视频在线精品| 日本久久一区二区| 欧美伦理电影网| 日韩三级av在线播放| 日韩精品中文字幕在线一区| 日韩免费高清视频| 国产人成一区二区三区影院| 中文字幕二三区不卡| 亚洲色图清纯唯美| 亚洲成人动漫av| 久久精品国产色蜜蜜麻豆| 国产在线精品一区二区不卡了| 国产成人精品一区二区三区四区 | 岛国精品一区二区| 99在线精品一区二区三区| 日本国产一区二区| 欧美一二三四区在线| 国产欧美一区二区精品性色超碰| 亚洲欧洲一区二区三区| 亚欧色一区w666天堂| 久久国产精品99精品国产| 粉嫩绯色av一区二区在线观看| 色成人在线视频| 日韩视频不卡中文| 国产精品乱码一区二区三区软件 | 亚洲综合丝袜美腿| 久久精品国产99| 9久草视频在线视频精品| 欧美日韩不卡视频| 久久综合狠狠综合久久综合88 | 国产精品久线观看视频| 亚洲国产日韩一区二区| 国产精品综合一区二区三区| 99久久免费视频.com| 欧美一区二区网站| 国产目拍亚洲精品99久久精品| 一级特黄大欧美久久久| 国产一区二区精品久久91| 91亚洲大成网污www| 精品捆绑美女sm三区| 专区另类欧美日韩| 久色婷婷小香蕉久久| 91色.com| 26uuu久久天堂性欧美| 一区二区三区在线观看网站| 久久91精品久久久久久秒播| 91视频免费观看| 久久综合精品国产一区二区三区 | 美女视频一区二区三区| a级高清视频欧美日韩| 欧美成人一区二区三区片免费 | 午夜视频在线观看一区二区| 国产.欧美.日韩| 91精品国产欧美日韩| 亚洲欧洲99久久| 国产一区二区视频在线播放| 欧美三级韩国三级日本一级| 国产精品三级av| 国产精品一级在线| 欧美一区二区三区在线观看视频 | 丝袜美腿亚洲一区二区图片| 99精品一区二区三区| 亚洲精品在线观看网站| 亚洲二区视频在线| 一本大道综合伊人精品热热| 久久久亚洲精品一区二区三区| 日韩vs国产vs欧美| 在线观看国产精品网站| 国产精品蜜臀在线观看| 国内精品伊人久久久久影院对白| 欧美日韩黄色影视| 亚洲男人的天堂av| 99久久久精品免费观看国产蜜| 久久久国产精华| 黄色成人免费在线| 欧美xxxxxxxx| 精东粉嫩av免费一区二区三区| 欧美高清你懂得| 亚洲成av人片在www色猫咪| 色婷婷av一区二区三区软件 | 三级一区在线视频先锋| 日本精品免费观看高清观看| 亚洲视频网在线直播| 99久久精品免费| 亚洲色图丝袜美腿| 91蜜桃网址入口| 国产精品久久久久久久久快鸭 | 国产资源在线一区| 精品日韩一区二区三区 | 欧美丰满高潮xxxx喷水动漫| 亚洲国产日产av| 在线成人av网站| 天堂蜜桃91精品| 日韩三级伦理片妻子的秘密按摩| 日本成人中文字幕在线视频| 欧美一区二区在线播放| 免费成人在线观看视频| 精品日本一线二线三线不卡| 狠狠色丁香久久婷婷综合_中| 久久亚洲影视婷婷| 国产91丝袜在线18| 国产精品久久久久久久岛一牛影视| 高清在线不卡av| 亚洲色图视频网| 在线观看欧美日本| 日本中文一区二区三区| 日韩网站在线看片你懂的| 久久99久久99精品免视看婷婷| 日韩午夜激情视频| 国产专区综合网| 日韩美女视频一区| 欧美网站大全在线观看| 日韩电影免费在线观看网站| 日韩女同互慰一区二区| 国产精品小仙女| 国产精品国产三级国产普通话99 | 亚洲人成网站在线| 欧美三级韩国三级日本三斤| 久久精品国产第一区二区三区| 久久免费电影网| 91在线视频网址| 日日摸夜夜添夜夜添国产精品| 精品蜜桃在线看| 91香蕉视频mp4| 日本麻豆一区二区三区视频| 久久精品在线观看| 欧美视频一区在线观看| 美女网站色91| 亚洲色图视频免费播放| 日韩欧美国产综合| 99国产精品久久久久| 香港成人在线视频| 久久久不卡网国产精品二区| 在线观看国产精品网站| 韩国v欧美v亚洲v日本v| 一区二区三区丝袜| 日韩欧美视频一区| 成人激情黄色小说| 免费视频最近日韩| 亚洲男人的天堂av| 26uuu成人网一区二区三区| 91麻豆国产精品久久| 精品一区二区久久久| 伊人婷婷欧美激情| 久久久午夜精品| 欧亚洲嫩模精品一区三区| 黑人精品欧美一区二区蜜桃 | 青青国产91久久久久久| 18成人在线视频| 精品福利在线导航| 欧美日韩免费观看一区三区| 国产高清在线精品| 日日夜夜精品视频免费| 国产精品的网站| 精品国产伦一区二区三区观看体验 | 亚洲国产另类av| 欧美激情一区二区在线| 欧美一区二区久久久| 97精品国产露脸对白| 国产在线视视频有精品| 亚洲成av人片在www色猫咪| 国产精品久久午夜| 日韩欧美成人一区| 91高清视频在线| 成人黄色在线网站| 韩日欧美一区二区三区| 日韩不卡一二三区| 香蕉乱码成人久久天堂爱免费| 亚洲日本一区二区三区| 国产亚洲精久久久久久| 日韩女优av电影| 538prom精品视频线放| 欧美在线制服丝袜| 91在线免费播放| 不卡视频一二三四| 从欧美一区二区三区| 国产在线播放一区| 久久se精品一区精品二区| 日本欧美一区二区| 亚洲成人精品一区二区| 亚洲一区中文在线| 亚洲精品免费在线观看| 中文字幕一区二区在线观看| 欧美经典三级视频一区二区三区| 欧美大胆人体bbbb| 欧美sm美女调教| 久久综合久久鬼色| 久久久午夜精品| 日本一区二区三区电影|