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

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

?? main2.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.
	***************************************************************************
*/

/*
 * Instead of the normal single demo application, the PIC18F demo is split 
 * into several smaller programs of which this is the second.  This enables the 
 * demo's to be executed on the RAM limited 40 pin devices.  The 64 and 80 pin 
 * devices require a more costly development platform and are not so readily 
 * available.
 *
 * The RTOSDemo2 project is configured for a PIC18F452 device.  Main2.c starts  
 * 5 tasks (including the idle task).
 * 
 * The first, second and third tasks do nothing but flash an LED.  This gives
 * visual feedback that everything is executing as expected.  One task flashes
 * an LED every 333ms (i.e. on and off every 333/2 ms), then next every 666ms
 * and the last every 999ms.
 *
 * The last task runs at the idle priority.  It repeatedly performs a 32bit 
 * calculation and checks it's result against the expected value.  This checks 
 * that the temporary storage utilised by the compiler to hold intermediate 
 * results does not get corrupted when the task gets switched in and out.
 * should the calculation ever provide an incorrect result the final LED is
 * turned on.
 *
 * 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 
 * PIC18F port.
 */

/*
Changes from V2.0.0

	+ Delay periods are now specified using variables and constants of
	  portTickType rather than unsigned portLONG.
*/

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

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

/* Priority definitions for the LED tasks.  Other tasks just use the idle
priority. */
#define mainLED_FLASH_PRIORITY			( tskIDLE_PRIORITY + ( unsigned portBASE_TYPE ) 1 )

/* The LED that is lit when should the calculation fail. */
#define mainCHECK_TASK_LED				( ( unsigned portBASE_TYPE ) 3 )

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

/*
 * The task that performs the 32 bit calculation at the idle priority.
 */
static void vCalculationTask( void *pvParameters );

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

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

	/* 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 LED flash tasks as defined in demo/common/minimal. */
	vStartLEDFlashTasks( mainLED_FLASH_PRIORITY );

	/* Start the check task defined in this file. */
	xTaskCreate( vCalculationTask, ( const portCHAR * const ) "Check", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );

	/* Start the scheduler. */
	vTaskStartScheduler();
}
/*-----------------------------------------------------------*/

static void vCalculationTask( void *pvParameters )
{
volatile unsigned long ulCalculatedValue; /* Volatile to ensure optimisation is minimal. */

	/* Continuously perform a calculation.  If the calculation result is ever
	incorrect turn the LED on. */
	for( ;; )
	{
		/* A good optimising compiler would just remove all this! */
		ulCalculatedValue = 1234UL;
		ulCalculatedValue *= 99UL;

		if( ulCalculatedValue != 122166UL )
		{
			vParTestSetLED( mainCHECK_TASK_LED, pdTRUE );
		}

		ulCalculatedValue *= 9876UL;

		if( ulCalculatedValue != 1206511416UL )
		{
			vParTestSetLED( mainCHECK_TASK_LED, pdTRUE );
		}

		ulCalculatedValue /= 15UL;

		if( ulCalculatedValue != 80434094UL )
		{
			vParTestSetLED( mainCHECK_TASK_LED, pdTRUE );
		}

		ulCalculatedValue += 918273UL;

		if( ulCalculatedValue != 81352367UL )
		{
			vParTestSetLED( mainCHECK_TASK_LED, pdTRUE );
		}
	}
}
/*-----------------------------------------------------------*/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91一区二区三区在线观看| 欧美性色黄大片| 婷婷综合五月天| 中文字幕巨乱亚洲| 7777精品伊人久久久大香线蕉超级流畅 | 日本欧美一区二区三区| 国产精品入口麻豆原神| 欧美精品一卡二卡| 色综合久久中文字幕综合网| 国内精品免费**视频| 夜夜精品视频一区二区 | 精品sm在线观看| 69精品人人人人| 在线看日本不卡| a级高清视频欧美日韩| 狠狠色综合日日| 美日韩黄色大片| 三级在线观看一区二区| 亚洲一区在线免费观看| 亚洲免费三区一区二区| 国产精品水嫩水嫩| 久久久久国产精品厨房| 欧美v国产在线一区二区三区| 欧美精品xxxxbbbb| 欧美久久高跟鞋激| 欧美日韩国产大片| 欧美日韩激情一区| 欧美麻豆精品久久久久久| 在线精品视频免费播放| 日本韩国欧美国产| 在线观看视频一区| 在线观看免费成人| 91国模大尺度私拍在线视频| 91偷拍与自偷拍精品| 成人网在线免费视频| 成人国产在线观看| 91在线小视频| 一本一本久久a久久精品综合麻豆| 91在线观看美女| 91一区二区三区在线播放| 91视频在线看| 欧美在线短视频| 欧美日韩久久不卡| 欧美高清视频一二三区 | 91免费看`日韩一区二区| 99精品欧美一区二区三区综合在线| 国产成人福利片| 成人午夜视频在线| 91丨porny丨国产| 欧美日韩一区在线| 欧美精品久久一区二区三区| 欧美精品xxxxbbbb| 久久网这里都是精品| 欧美国产精品久久| 亚洲精品国久久99热| 五月激情综合婷婷| 久久精品二区亚洲w码| 国产成人综合自拍| 91免费视频观看| 欧美精品乱码久久久久久按摩| 日韩一级在线观看| 久久蜜臀精品av| 亚洲青青青在线视频| 午夜精品久久久久久久久久| 99久久精品国产一区| 亚洲chinese男男1069| 中文字幕一区在线观看| 中文字幕一区二区三区在线观看| 亚洲人精品午夜| 免费国产亚洲视频| 国产宾馆实践打屁股91| 91丝袜呻吟高潮美腿白嫩在线观看| 久久色视频免费观看| 麻豆国产精品官网| 精品国产乱码久久久久久1区2区| 日韩高清在线一区| 日韩一区二区电影| 韩国v欧美v日本v亚洲v| 精品久久国产老人久久综合| 精品一区免费av| 久久久国产一区二区三区四区小说 | 欧美一区二区三区色| 蜜桃一区二区三区在线观看| 欧美一级二级在线观看| 狠狠色丁香九九婷婷综合五月| 精品国产一区二区三区久久影院| 蜜芽一区二区三区| 欧美精品一区二区三区一线天视频 | 欧美日本乱大交xxxxx| 天堂一区二区在线免费观看| 欧美精品视频www在线观看| 蜜臀a∨国产成人精品| 久久久亚洲午夜电影| 91丨porny丨户外露出| 亚洲成人av福利| 久久综合九色欧美综合狠狠 | 一区二区三区视频在线观看| 欧美日韩亚洲丝袜制服| 久久电影国产免费久久电影| 欧美国产一区视频在线观看| 欧美综合在线视频| 日韩av一二三| 国产精品网站在线观看| 欧洲国内综合视频| 国内精品伊人久久久久影院对白| 国产三级一区二区| 日本高清不卡在线观看| 精品综合久久久久久8888| 国产精品婷婷午夜在线观看| 欧美人妖巨大在线| 国产福利一区二区三区视频| 亚洲午夜精品网| 国产日韩欧美一区二区三区乱码| 91麻豆精东视频| 国内成人免费视频| 亚洲一区二区视频在线观看| 精品国产91洋老外米糕| 91小视频免费看| 蜜臀久久久久久久| 亚洲一区二区三区国产| 国产精品网站在线播放| 日韩欧美区一区二| 欧美视频在线一区| 97精品电影院| 成人黄色小视频在线观看| 日韩av一区二| 亚洲第一福利一区| 蜜芽一区二区三区| 亚洲国产精品一区二区尤物区| 日本一区二区三区四区| 精品免费日韩av| 欧美丰满嫩嫩电影| 欧美最猛黑人xxxxx猛交| 不卡大黄网站免费看| 狠狠色综合播放一区二区| 美女一区二区视频| 三级不卡在线观看| 亚洲va韩国va欧美va| 一个色综合av| 亚洲黄色在线视频| 成人免费一区二区三区在线观看| 久久久久久一二三区| 日韩三级在线免费观看| 日韩一区二区三区三四区视频在线观看| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 国产精品毛片高清在线完整版 | 国产欧美日韩视频在线观看| 日韩视频在线你懂得| 欧美一级片在线| 欧美一区二区三区在线观看| 欧美日韩国产不卡| 欧美福利视频导航| 制服丝袜一区二区三区| 日韩午夜中文字幕| 精品理论电影在线观看 | 精品国产免费一区二区三区四区 | 国内精品免费在线观看| 国产美女精品一区二区三区| 男人的天堂亚洲一区| 国内精品久久久久影院一蜜桃| 国内一区二区视频| 成人综合婷婷国产精品久久蜜臀| 丁香另类激情小说| 97精品国产露脸对白| 欧美三级三级三级爽爽爽| 欧美老女人第四色| 精品国产免费人成电影在线观看四季| 精品久久久久久久久久久久久久久 | 51精品视频一区二区三区| 日韩欧美电影在线| 国产精品狼人久久影院观看方式| 成人免费在线视频观看| 亚洲国产中文字幕| 久久国产婷婷国产香蕉| 福利视频网站一区二区三区| 91日韩一区二区三区| 欧美一级欧美一级在线播放| 精品国产乱码久久久久久图片| 国产亚洲自拍一区| 亚洲第一激情av| 国产乱人伦偷精品视频不卡| 99久久婷婷国产综合精品电影| 欧美人与禽zozo性伦| 国产视频一区在线播放| 亚洲一区二区三区视频在线播放 | 在线亚洲一区二区| 精品国偷自产国产一区| 国产精品成人免费| 日本不卡在线视频| 99久久国产综合精品色伊| 9191精品国产综合久久久久久| 国产亚洲综合性久久久影院| 亚洲成人午夜电影| 成人网男人的天堂| 精品久久久久久久久久久院品网| 最好看的中文字幕久久| 激情亚洲综合在线| 欧美日韩你懂得| 中文字幕日韩一区| 国产精品资源在线看|