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

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

?? flash.c

?? Este é um rtos free para a familia arm7
?? C
字號:
/*
	FreeRTOS V4.0.0 - Copyright (C) 2003-2006 Richard Barry.

	This file is part of the FreeRTOS distribution.

	FreeRTOS 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 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; 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, 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 flash .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.
 * 
 * Three tasks are created, each of which flash an LED at a different rate.  The first 
 * LED flashes every 200ms, the second every 400ms, the third every 600ms.
 *
 * 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 and the AVR port port B.
 *
 */

/*
Changes from V2.0.0

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

Changes from V2.5.5

	+ Calls to vTaskDelay() have been replaced with vTaskDelayUntil().

*/

#include <stdlib.h>

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

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

#define ledSTACK_SIZE		configMINIMAL_STACK_SIZE
#define ledNUMBER_OF_LEDS	( 3 )
#define ledFLASH_RATE_BASE	( ( portTickType ) 333 )

/* Variable used by the created tasks to calculate the LED number to use, and
the rate at which they should flash the LED. */
static volatile unsigned portBASE_TYPE uxFlashTaskNumber = 0;

/* The task that is created three times. */
static portTASK_FUNCTION_PROTO( vLEDFlashTask, pvParameters );

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

void vStartLEDFlashTasks( unsigned portBASE_TYPE uxPriority )
{
signed portBASE_TYPE xLEDTask;

	/* Create the three tasks. */
	for( xLEDTask = 0; xLEDTask < ledNUMBER_OF_LEDS; ++xLEDTask )
	{
		/* Spawn the task. */
		xTaskCreate( vLEDFlashTask, ( const signed portCHAR * const ) "LEDx", ledSTACK_SIZE, NULL, uxPriority, ( xTaskHandle * ) NULL );
	}
}
/*-----------------------------------------------------------*/

static portTASK_FUNCTION( vLEDFlashTask, pvParameters )
{
portTickType xFlashRate, xLastFlashTime;
unsigned portBASE_TYPE uxLED;

	/* The parameters are not used. */
	( void ) pvParameters;

	/* Calculate the LED and flash rate. */
	portENTER_CRITICAL();
	{
		/* See which of the eight LED's we should use. */
		uxLED = uxFlashTaskNumber;

		/* Update so the next task uses the next LED. */
		uxFlashTaskNumber++;
	}
	portEXIT_CRITICAL();

	xFlashRate = ledFLASH_RATE_BASE + ( ledFLASH_RATE_BASE * ( portTickType ) uxLED );
	xFlashRate /= portTICK_RATE_MS;

	/* We will turn the LED on and off again in the delay period, so each
	delay is only half the total period. */
	xFlashRate /= ( portTickType ) 2;

	/* We need to initialise xLastFlashTime prior to the first call to 
	vTaskDelayUntil(). */
	xLastFlashTime = xTaskGetTickCount();

	for(;;)
	{
		/* Delay for half the flash period then turn the LED on. */
		vTaskDelayUntil( &xLastFlashTime, xFlashRate );
		vParTestToggleLED( uxLED );

		/* Delay for half the flash period then turn the LED off. */
		vTaskDelayUntil( &xLastFlashTime, xFlashRate );
		vParTestToggleLED( uxLED );
	}
} /*lint !e715 !e818 !e830 Function definition must be standard for task creation. */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品久久久久久久| 欧美日产在线观看| 欧美精品日日鲁夜夜添| 中国色在线观看另类| 人人精品人人爱| 99久久伊人网影院| 精品99一区二区| 亚洲bt欧美bt精品| 91麻豆高清视频| 久久精品免费在线观看| 久久超碰97人人做人人爱| 欧美性视频一区二区三区| 日韩毛片在线免费观看| 国产精品一级黄| 日韩精品在线看片z| 五月激情丁香一区二区三区| av电影一区二区| 欧美精品一区二区在线观看| 免费人成在线不卡| 91精品久久久久久久91蜜桃| 亚洲国产精品久久久久婷婷884| eeuss国产一区二区三区| 国产亚洲欧美日韩俺去了| 久久国产精品99精品国产| 日韩一级高清毛片| 另类小说综合欧美亚洲| 日韩你懂的在线播放| 日韩精品每日更新| 欧美一区二区三区在| 日本成人在线不卡视频| 欧美精品第1页| 奇米影视在线99精品| 日韩精品中文字幕在线不卡尤物 | 久久婷婷色综合| 国产又黄又大久久| 久久久久久久久久久电影| 久久精品国产精品亚洲红杏| 日韩三级在线免费观看| 欧美aaaaa成人免费观看视频| 日韩一级片网站| 激情亚洲综合在线| 国产婷婷精品av在线| 成人av午夜电影| 一区二区激情小说| 欧美麻豆精品久久久久久| 婷婷国产v国产偷v亚洲高清| 欧美一级xxx| 国产一区二区视频在线播放| 欧美国产日韩a欧美在线观看| 99麻豆久久久国产精品免费 | 国产女主播视频一区二区| av在线播放成人| 亚洲最新在线观看| 日韩一级片网站| 国产精品综合二区| 1024精品合集| 欧美久久婷婷综合色| 国内精品嫩模私拍在线| 自拍偷拍亚洲激情| 欧美色区777第一页| 黄色日韩三级电影| 尤物在线观看一区| 欧美成人精品福利| av中文字幕在线不卡| 青娱乐精品视频在线| 国产精品久久久久影院| 3751色影院一区二区三区| 国产99精品在线观看| 亚洲电影中文字幕在线观看| 国产亚洲1区2区3区| 欧美日韩一级片在线观看| 国产一区二区在线影院| 亚洲精品视频在线看| 精品国产乱码久久久久久影片| av电影在线观看完整版一区二区| 日本午夜一本久久久综合| 国产精品日日摸夜夜摸av| 91精品久久久久久久91蜜桃| 99精品国产热久久91蜜凸| 蜜臀a∨国产成人精品| 亚洲免费成人av| 国产喷白浆一区二区三区| 欧美一个色资源| 91久久精品午夜一区二区| 国产露脸91国语对白| 日本va欧美va精品| 一区二区三区**美女毛片| 中文字幕不卡在线观看| 精品国精品国产| 91精品国产综合久久精品麻豆 | 亚洲丝袜另类动漫二区| 亚洲精品一区二区三区四区高清| 欧美日韩在线播放| 色婷婷av一区二区三区之一色屋| 国产精品综合网| 久久国产剧场电影| 日韩高清不卡一区二区| 亚洲国产aⅴ成人精品无吗| 国产精品青草久久| 国产免费久久精品| 久久嫩草精品久久久精品一| 欧美sm美女调教| 日韩欧美国产一二三区| 91精品国产色综合久久不卡电影| 色8久久人人97超碰香蕉987| 成人不卡免费av| 成人精品鲁一区一区二区| 国产精品一区二区在线播放| 韩国毛片一区二区三区| 精品一区二区成人精品| 美女www一区二区| 精品在线你懂的| 韩国精品主播一区二区在线观看| 九九精品一区二区| 国产精品一区二区黑丝| 美女视频黄免费的久久| 久久国产精品露脸对白| 久久er99精品| 国产成人综合网站| 北条麻妃一区二区三区| 99精品在线免费| 色狠狠一区二区| 欧美高清激情brazzers| 日韩欧美一区二区不卡| 精品嫩草影院久久| 日本一区二区三区dvd视频在线| 国产午夜精品久久久久久免费视| 久久综合久久久久88| 亚洲国产岛国毛片在线| 一区在线观看免费| 亚洲不卡一区二区三区| 蜜桃视频在线观看一区| 精品无码三级在线观看视频| 国产福利一区在线| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 18成人在线观看| 亚洲国产精品久久人人爱蜜臀| 日本视频在线一区| 国产91丝袜在线18| 色欧美日韩亚洲| 欧美一二三区精品| 国产精品理伦片| 婷婷六月综合网| 国产高清不卡二三区| 欧美在线一区二区| 日韩精品一区二区三区视频 | 亚洲精品一区在线观看| 亚洲丝袜另类动漫二区| 日本少妇一区二区| 成人免费黄色大片| 69成人精品免费视频| 久久免费的精品国产v∧| 亚洲美女在线一区| 精品在线播放免费| 91免费国产在线| 精品久久久久久最新网址| ...xxx性欧美| 国产呦精品一区二区三区网站| 一本在线高清不卡dvd| 精品成a人在线观看| 亚洲地区一二三色| 成人一区二区视频| 欧美一区二区在线观看| 亚洲视频精选在线| 精品美女在线播放| 亚洲国产sm捆绑调教视频| 国产白丝网站精品污在线入口| 欧美日韩一区二区三区四区| 国产精品视频一区二区三区不卡| 日韩激情一二三区| 色网综合在线观看| 久久九九全国免费| 美女视频黄久久| 欧美午夜免费电影| 国产精品网站在线观看| 极品少妇一区二区| 91麻豆精品久久久久蜜臀| 一区二区三区四区乱视频| 成人免费毛片aaaaa**| 精品粉嫩aⅴ一区二区三区四区| 婷婷丁香激情综合| 欧美日韩中字一区| 五月天久久比比资源色| 97久久超碰国产精品电影| 国产亚洲欧美色| 久久99精品久久久久久| 日韩视频中午一区| 亚洲成人动漫在线免费观看| 在线视频你懂得一区二区三区| 欧美激情综合五月色丁香小说| 激情都市一区二区| 337p日本欧洲亚洲大胆色噜噜| 日韩不卡一区二区| 91精品国产色综合久久不卡电影 | 亚洲精品国产成人久久av盗摄| 91在线视频播放| 成人欧美一区二区三区白人| 99视频精品免费视频| 亚洲视频香蕉人妖| 在线观看成人小视频|