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

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

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


/**
 * Creates eight tasks, each of which flash an LED at a different rate.  The first 
 * LED flashes every 125ms, the second every 250ms, the third every 375ms, etc.
 *
 * The LED flash tasks provide instant visual feedback.  They show that the scheduler 
 * is still operational.
 *
 * The PC port uses the standard parallel port for outputs, the Flashlite 186 port 
 * uses IO port F.
 *
 * \page flashC flash.c
 * \ingroup DemoFiles
 * <HR>
 */

/*
Changes from V2.0.0

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

Changes from V2.1.1

	+ The stack size now uses configMINIMAL_STACK_SIZE.
	+ String constants made file scope to decrease stack depth on 8051 port.
*/

#include <stdlib.h>

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

/* Demo program include files. */
#include "partest.h"
#include "flash.h"
#include "print.h"

#define ledSTACK_SIZE		configMINIMAL_STACK_SIZE

/* Structure used to pass parameters to the LED tasks. */
typedef struct LED_PARAMETERS
{
	unsigned portBASE_TYPE uxLED;		/*< The output the task should use. */
	portTickType xFlashRate;	/*< The rate at which the LED should flash. */
} xLEDParameters;

/* The task that is created eight times - each time with a different xLEDParaemtes 
structure passed in as the parameter. */
static void vLEDFlashTask( void *pvParameters );

/* String to print if USE_STDIO is defined. */
const portCHAR * const pcTaskStartMsg = "LED flash task started.\r\n";

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

void vStartLEDFlashTasks( unsigned portBASE_TYPE uxPriority )
{
unsigned portBASE_TYPE uxLEDTask;
xLEDParameters *pxLEDParameters;
const unsigned portBASE_TYPE uxNumOfLEDs = 8;
const portTickType xFlashRate = 125;

	/* Create the eight tasks. */
	for( uxLEDTask = 0; uxLEDTask < uxNumOfLEDs; ++uxLEDTask )
	{
		/* Create and complete the structure used to pass parameters to the next 
		created task. */
		pxLEDParameters = ( xLEDParameters * ) pvPortMalloc( sizeof( xLEDParameters ) );
		pxLEDParameters->uxLED = uxLEDTask;
		pxLEDParameters->xFlashRate = ( xFlashRate + ( xFlashRate * ( portTickType ) uxLEDTask ) );
		pxLEDParameters->xFlashRate /= portTICK_RATE_MS;

		/* Spawn the task. */
		xTaskCreate( vLEDFlashTask, "LEDx", ledSTACK_SIZE, ( void * ) pxLEDParameters, uxPriority, ( xTaskHandle * ) NULL );
	}
}
/*-----------------------------------------------------------*/

static void vLEDFlashTask( void *pvParameters )
{
xLEDParameters *pxParameters;

	/* Queue a message for printing to say the task has started. */
	vPrintDisplayMessage( &pcTaskStartMsg );

	pxParameters = ( xLEDParameters * ) pvParameters;

	for(;;)
	{
		/* Delay for half the flash period then turn the LED on. */
		vTaskDelay( pxParameters->xFlashRate / ( portTickType ) 2 );
		vParTestToggleLED( pxParameters->uxLED );

		/* Delay for half the flash period then turn the LED off. */
		vTaskDelay( pxParameters->xFlashRate / ( portTickType ) 2 );
		vParTestToggleLED( pxParameters->uxLED );
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
夜夜操天天操亚洲| 国产精品久久久久影视| 99久久777色| av资源网一区| 色婷婷久久久久swag精品| 国产精品白丝jk黑袜喷水| 国产一区二区三区免费播放| 蜜桃一区二区三区在线| 久久精品99国产精品| 久久激情五月激情| 国产一区二区成人久久免费影院| 久久99久久99| 成人综合激情网| 91小视频在线观看| 欧美精品v日韩精品v韩国精品v| 欧美日韩成人综合在线一区二区| 制服丝袜中文字幕一区| 欧美精品一区二区三区久久久| 精品国产乱码久久久久久夜甘婷婷| 久久综合九色综合欧美98| 国产精品成人免费在线| 亚洲午夜久久久久| 久久国产精品99久久人人澡| 国产九色精品成人porny| 91日韩一区二区三区| 欧美特级限制片免费在线观看| 日韩欧美一区二区在线视频| 国产欧美中文在线| 亚洲午夜激情网站| 国产成人av一区| 欧美视频在线观看一区| 精品sm捆绑视频| 一区二区三区不卡视频| 国产一区二区女| 欧美日韩一区二区在线视频| 久久久久综合网| 亚洲国产精品欧美一二99| 国产精品白丝av| 日韩欧美一区二区三区在线| 亚洲欧美国产77777| 激情六月婷婷久久| 色爱区综合激月婷婷| 国产日韩精品一区二区三区在线| 亚洲精品视频在线| 国产福利一区在线| 欧美一区二区黄| 一区二区三区在线视频观看| 国产一区二区三区久久悠悠色av| 欧美日韩亚洲综合一区 | 91九色02白丝porn| 久久亚区不卡日本| 首页综合国产亚洲丝袜| 成人av午夜影院| 精品sm捆绑视频| 日日欢夜夜爽一区| 欧美日韩日日摸| 亚洲精品伦理在线| 99精品久久免费看蜜臀剧情介绍| 精品少妇一区二区三区| 五月婷婷色综合| 色偷偷88欧美精品久久久| 国产精品久久久久久久久免费丝袜 | 日韩一区二区三区免费看 | 天堂蜜桃91精品| 色妹子一区二区| 国产精品色哟哟| 成人国产精品免费网站| 久久这里只有精品6| 久久99国产精品久久99果冻传媒| 欧美日韩国产精品自在自线| 一区二区三区蜜桃| 欧日韩精品视频| 又紧又大又爽精品一区二区| 91九色最新地址| 亚洲一区二区精品久久av| 一本大道久久a久久综合| 伊人色综合久久天天| 91国产成人在线| 午夜久久电影网| 欧美一区二区三区视频在线| 美女精品一区二区| 久久久久久黄色| 国产福利91精品一区二区三区| 久久精品人人爽人人爽| 国产传媒欧美日韩成人| 亚洲欧洲日韩综合一区二区| 91在线视频观看| 亚洲一区视频在线| 日韩一区二区三区精品视频 | 国产成人一区在线| 亚洲欧美在线视频| 欧美羞羞免费网站| 蜜桃视频一区二区| 国产日韩欧美精品综合| 91成人在线精品| 蜜桃av噜噜一区| 国产色综合一区| 日本伦理一区二区| 蜜桃在线一区二区三区| 国产精品沙发午睡系列990531| 色天天综合久久久久综合片| 亚洲第一会所有码转帖| 久久免费看少妇高潮| 91在线无精精品入口| 日本不卡视频在线| 国产精品久99| 91精品国产一区二区人妖| 国产福利一区二区| 亚洲va国产va欧美va观看| 精品国产乱子伦一区| 91激情五月电影| 国产成人精品在线看| 亚洲国产综合色| 日本一区二区综合亚洲| 欧美日韩精品电影| 国产成人在线色| 男男gaygay亚洲| 亚洲综合丁香婷婷六月香| 国产肉丝袜一区二区| 91精品国产综合久久久久久久久久 | 亚洲国产一区在线观看| 亚洲精品一区二区三区香蕉| 91精品办公室少妇高潮对白| 国产精品1024| 伦理电影国产精品| 亚洲曰韩产成在线| 国产精品久久久久一区二区三区| 日韩一区和二区| 欧美日韩一区二区在线观看视频| 国产成人h网站| 九色|91porny| 日产精品久久久久久久性色| 最新欧美精品一区二区三区| 久久九九99视频| 久久亚洲精华国产精华液| 91精品国产综合久久久蜜臀粉嫩| 在线观看日韩电影| 91网站在线观看视频| 国产成人精品www牛牛影视| 九九精品一区二区| 日本在线播放一区二区三区| 亚洲第一主播视频| 亚洲永久免费av| 夜夜嗨av一区二区三区网页| 亚洲欧美另类久久久精品2019| 国产精品不卡一区二区三区| 国产日韩欧美一区二区三区乱码 | 国产尤物一区二区| 九九精品视频在线看| 欧美aaaaa成人免费观看视频| 亚洲成人7777| 日韩不卡一区二区三区| 午夜精品一区在线观看| 亚洲国产精品嫩草影院| 午夜精品一区二区三区三上悠亚| 五月天精品一区二区三区| 婷婷亚洲久悠悠色悠在线播放| 偷拍日韩校园综合在线| 天天av天天翘天天综合网| 婷婷中文字幕综合| 久久电影网电视剧免费观看| 国内精品视频666| 国产91精品一区二区| 成人国产一区二区三区精品| 99在线热播精品免费| 91蝌蚪porny九色| 欧美色爱综合网| 日韩色在线观看| 国产三级精品视频| 亚洲人成伊人成综合网小说| 夜夜爽夜夜爽精品视频| 日韩和欧美一区二区| 狠狠色丁香久久婷婷综合_中| 国产电影精品久久禁18| 91丝袜美腿高跟国产极品老师| 欧美午夜一区二区| 欧美不卡视频一区| 国产精品欧美一区二区三区| 亚洲在线中文字幕| 久久国产精品72免费观看| 成人av资源在线观看| 欧美日韩成人在线一区| 久久久久久久久97黄色工厂| 一区二区三区欧美日| 久久精品噜噜噜成人88aⅴ| 91在线视频观看| 日韩三级在线观看| 亚洲精品成人精品456| 免费一级片91| 97aⅴ精品视频一二三区| 日韩一区二区精品在线观看| 国产精品全国免费观看高清| 日本大胆欧美人术艺术动态| 国产aⅴ综合色| 欧美一级片在线看| 亚洲精品五月天| 成人高清免费观看| 欧美成人精精品一区二区频| 亚洲理论在线观看| 国产成人av电影在线观看|