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

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

?? main.c

?? MCS-51的一個(gè)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 first.  This enables the 
 * demo's to be executed on the RAM limited PIC-devices.
 *
 * The Demo1 project is configured for a PIC18F4620 device.  Main.c starts 9 
 * tasks (including the idle task).

 * This first demo is included to do a quick check on the FreeRTOS
 * installation. It is also included to demonstrate a minimal project-setup
 * to use FreeRTOS in a wizC environment.
 *
 * Eight independant tasks are created. All tasks share the same taskcode.
 * Each task blinks a different led on portB. The blinkrate for each task
 * is different, but chosen in such a way that portB will show a binary
 * counter pattern. All blinkrates are derived from a single master-rate.
 * By default, this  masterrate is set to 100 milliseconds. Although such
 * a low value will make it almost impossible to see some of the leds
 * actually blink, it is a good value when using the wizC-simulator.
 * When testing on a real chip, changing the value to eg. 500 milliseconds
 * would be appropiate.
 */
 
/* Scheduler include files. */
#include <FreeRTOS.h>
#include <task.h>

#define mainBLINK_LED_INTERVAL	( ( portTickType ) 100 / ( portTICK_RATE_MS ) )

/* The LED that is flashed by the B0 task. */
#define mainBLINK_LED0_PORT		LATD
#define mainBLINK_LED0_TRIS		TRISD
#define mainBLINK_LED0_PIN		0
#define mainBLINK_LED0_INTERVAL	((mainBLINK_LED_INTERVAL) << (mainBLINK_LED0_PIN))

/* The LED that is flashed by the B1 task. */
#define mainBLINK_LED1_PORT		LATD
#define mainBLINK_LED1_TRIS		TRISD
#define mainBLINK_LED1_PIN		1
#define mainBLINK_LED1_INTERVAL	((mainBLINK_LED_INTERVAL) << (mainBLINK_LED1_PIN))

/* The LED that is flashed by the B2 task. */
#define mainBLINK_LED2_PORT		LATD
#define mainBLINK_LED2_TRIS		TRISD
#define mainBLINK_LED2_PIN		2
#define mainBLINK_LED2_INTERVAL	((mainBLINK_LED_INTERVAL) << (mainBLINK_LED2_PIN))

/* The LED that is flashed by the B3 task. */
#define mainBLINK_LED3_PORT		LATD
#define mainBLINK_LED3_TRIS		TRISD
#define mainBLINK_LED3_PIN		3
#define mainBLINK_LED3_INTERVAL	((mainBLINK_LED_INTERVAL) << (mainBLINK_LED3_PIN))

/* The LED that is flashed by the B4 task. */
#define mainBLINK_LED4_PORT		LATD
#define mainBLINK_LED4_TRIS		TRISD
#define mainBLINK_LED4_PIN		4
#define mainBLINK_LED4_INTERVAL	((mainBLINK_LED_INTERVAL) << (mainBLINK_LED4_PIN))

/* The LED that is flashed by the B5 task. */
#define mainBLINK_LED5_PORT		LATD
#define mainBLINK_LED5_TRIS		TRISD
#define mainBLINK_LED5_PIN		5
#define mainBLINK_LED5_INTERVAL	((mainBLINK_LED_INTERVAL) << (mainBLINK_LED5_PIN))

/* The LED that is flashed by the B6 task. */
#define mainBLINK_LED6_PORT		LATD
#define mainBLINK_LED6_TRIS		TRISD
#define mainBLINK_LED6_PIN		6
#define mainBLINK_LED6_INTERVAL	((mainBLINK_LED_INTERVAL) << (mainBLINK_LED6_PIN))

/* The LED that is flashed by the B7 task. */
#define mainBLINK_LED7_PORT		LATD
#define mainBLINK_LED7_TRIS		TRISD
#define mainBLINK_LED7_PIN		7
#define mainBLINK_LED7_INTERVAL	((mainBLINK_LED_INTERVAL) << (mainBLINK_LED7_PIN))

typedef struct {
	unsigned char *port;
	unsigned char *tris;
	unsigned char pin;
	portTickType  interval;
} SBLINK;

const SBLINK sled0 = {&mainBLINK_LED0_PORT, &mainBLINK_LED0_TRIS, mainBLINK_LED0_PIN, mainBLINK_LED0_INTERVAL};
const SBLINK sled1 = {&mainBLINK_LED1_PORT, &mainBLINK_LED1_TRIS, mainBLINK_LED1_PIN, mainBLINK_LED1_INTERVAL};
const SBLINK sled2 = {&mainBLINK_LED2_PORT, &mainBLINK_LED2_TRIS, mainBLINK_LED2_PIN, mainBLINK_LED2_INTERVAL};
const SBLINK sled3 = {&mainBLINK_LED3_PORT, &mainBLINK_LED3_TRIS, mainBLINK_LED3_PIN, mainBLINK_LED3_INTERVAL};
const SBLINK sled4 = {&mainBLINK_LED4_PORT, &mainBLINK_LED4_TRIS, mainBLINK_LED4_PIN, mainBLINK_LED4_INTERVAL};
const SBLINK sled5 = {&mainBLINK_LED5_PORT, &mainBLINK_LED5_TRIS, mainBLINK_LED5_PIN, mainBLINK_LED5_INTERVAL};
const SBLINK sled6 = {&mainBLINK_LED6_PORT, &mainBLINK_LED6_TRIS, mainBLINK_LED6_PIN, mainBLINK_LED6_INTERVAL};
const SBLINK sled7 = {&mainBLINK_LED7_PORT, &mainBLINK_LED7_TRIS, mainBLINK_LED7_PIN, mainBLINK_LED7_INTERVAL};

/*
 * The task code for the "vBlink" task.
 */
static portTASK_FUNCTION_PROTO(vBlink, pvParameters);

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

/*
 * Creates the tasks, then starts the scheduler.
 */
void main( void )
{
	/*
	 * Start the blink tasks defined in this file.
	 */
	xTaskCreate( vBlink,  "B0", configMINIMAL_STACK_SIZE, &sled0, tskIDLE_PRIORITY, NULL );
	xTaskCreate( vBlink,  "B1", configMINIMAL_STACK_SIZE, &sled1, tskIDLE_PRIORITY, NULL );
	xTaskCreate( vBlink,  "B2", configMINIMAL_STACK_SIZE, &sled2, tskIDLE_PRIORITY, NULL );
	xTaskCreate( vBlink,  "B3", configMINIMAL_STACK_SIZE, &sled3, tskIDLE_PRIORITY, NULL );
	xTaskCreate( vBlink,  "B4", configMINIMAL_STACK_SIZE, &sled4, tskIDLE_PRIORITY, NULL );
	xTaskCreate( vBlink,  "B5", configMINIMAL_STACK_SIZE, &sled5, tskIDLE_PRIORITY, NULL );
	xTaskCreate( vBlink,  "B6", configMINIMAL_STACK_SIZE, &sled6, tskIDLE_PRIORITY, NULL );
	xTaskCreate( vBlink,  "B7", configMINIMAL_STACK_SIZE, &sled7, tskIDLE_PRIORITY, NULL );

	/*
	 * Start the scheduler.
	 */
	vTaskStartScheduler( );
	
	while(1)	/* This point should never be reached. */
	{
	}
}
/*-----------------------------------------------------------*/

static portTASK_FUNCTION(vBlink, pvParameters)
{
	unsigned char	*Port		= ((SBLINK *)pvParameters)->port;
	unsigned char	*Tris		= ((SBLINK *)pvParameters)->tris;
	unsigned char	Pin			= ((SBLINK *)pvParameters)->pin;
	portTickType	Interval	= ((SBLINK *)pvParameters)->interval;
	
	portTickType	xLastWakeTime;

	/*
	 * Initialize the hardware
	 */
	*Tris &= ~(1<<Pin);	// Set the pin that is used by this task to ouput
	*Port &= ~(1<<Pin);	// Drive the pin low
	
	/*
	 * Initialise the xLastWakeTime variable with the current time.
	 */
	xLastWakeTime = xTaskGetTickCount();

	/*
	 * Cycle for ever, delaying then toggle the LED.
	 */
	for( ;; )
	{
		/*
		 * Wait until it is time to toggle
		 */
		vTaskDelayUntil( &xLastWakeTime, Interval );

		/*
		 * Toggle the LED for visual feedback.
		 */
		*Port ^= 1<<Pin;
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩你懂的电影在线观看| 亚洲国产日韩精品| 日韩精品最新网址| 欧美精品 国产精品| 91丨国产丨九色丨pron| 99精品国产99久久久久久白柏| 国产精品亚洲综合一区在线观看| 国产一区91精品张津瑜| 国产精品一级片| av电影在线观看一区| 欧洲一区在线电影| 欧美自拍偷拍午夜视频| 91黄色免费网站| 欧美丝袜丝交足nylons图片| 91亚洲精品久久久蜜桃| 一本一道久久a久久精品| 一本大道综合伊人精品热热| 91在线丨porny丨国产| 91视频观看视频| 777久久久精品| 国产亚洲精品中文字幕| 日本一区二区三区免费乱视频| 亚洲欧洲制服丝袜| 日韩精品91亚洲二区在线观看| 久草精品在线观看| 99这里只有精品| 正在播放亚洲一区| 国产女主播一区| 国产精品第四页| 偷拍一区二区三区四区| 欧美96一区二区免费视频| 国产精品一级黄| 精品视频免费看| 久久精品男人的天堂| 亚洲国产美女搞黄色| 久久精品国产亚洲一区二区三区| 丁香五精品蜜臀久久久久99网站| 99精品黄色片免费大全| 日韩精品一区二区在线| 亚洲视频在线一区二区| 美女一区二区视频| 91丨porny丨最新| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 波多野结衣亚洲| 精品视频在线看| 中文字幕av一区 二区| 亚洲综合精品久久| 国产凹凸在线观看一区二区| 欧美丝袜丝交足nylons| 久久综合狠狠综合久久综合88 | 久久久久久久网| 亚洲男女一区二区三区| 免费观看在线综合色| 91热门视频在线观看| 精品国产伦一区二区三区观看方式 | 欧美高清视频不卡网| 久久色.com| 亚洲a一区二区| 91色九色蝌蚪| 中文字幕永久在线不卡| 成人性色生活片免费看爆迷你毛片| 91精品国产欧美一区二区成人| 亚洲视频在线一区二区| 成人中文字幕合集| 欧美国产精品v| 国产精品一二三在| 国产日韩欧美精品电影三级在线| 天天射综合影视| 欧美三级乱人伦电影| 亚洲尤物视频在线| 欧美色大人视频| 亚洲国产一区视频| 欧美久久久久久久久中文字幕| 亚洲一二三区视频在线观看| 91丨porny丨中文| 亚洲精品高清在线| 欧美中文字幕一区| 亚洲成av人在线观看| 欧美美女直播网站| 日本 国产 欧美色综合| 日韩三级视频在线观看| 麻豆国产欧美一区二区三区| 91精品国产免费久久综合| 免费亚洲电影在线| 久久色在线视频| 成人妖精视频yjsp地址| 最新热久久免费视频| 色综合久久久久久久久久久| 亚洲影视在线播放| 91精品国产免费久久综合| 久久99在线观看| 亚洲国产精品传媒在线观看| 成人毛片视频在线观看| 亚洲色图第一区| 欧美一级片在线观看| 六月丁香婷婷色狠狠久久| 欧美tickling挠脚心丨vk| 另类小说欧美激情| 国产欧美一区二区在线| 日本久久电影网| 蜜桃久久精品一区二区| 欧美激情一区在线观看| 欧美在线观看视频一区二区 | heyzo一本久久综合| 亚洲欧美另类图片小说| 欧美人牲a欧美精品| 久久国产乱子精品免费女| 欧美激情中文不卡| 欧洲av一区二区嗯嗯嗯啊| 免费成人在线观看| 国产精品久久久爽爽爽麻豆色哟哟| 色婷婷av一区| 美女国产一区二区| 亚洲欧美日韩一区| 精品88久久久久88久久久| 91福利资源站| 国内欧美视频一区二区 | 亚洲小说春色综合另类电影| 日韩精品中文字幕在线一区| 91蜜桃视频在线| 国产一区二区视频在线| 三级久久三级久久久| 国产精品久久久久久久久久免费看| 欧美精品v国产精品v日韩精品 | 国产精品99久久久| 日本vs亚洲vs韩国一区三区二区| 亚洲精品视频在线看| 精品国产一区二区三区不卡| 欧美午夜影院一区| 99精品视频在线观看| 欧美亚洲日本国产| 成人亚洲精品久久久久软件| 日韩福利视频网| 亚洲另类在线制服丝袜| 国产精品伦一区| 久久五月婷婷丁香社区| 精品国产露脸精彩对白| 欧美一区二区三区男人的天堂| 91浏览器打开| 91丨九色丨蝌蚪富婆spa| 成人精品视频一区二区三区| 国产乱人伦精品一区二区在线观看| 丝瓜av网站精品一区二区| 亚洲精品视频免费观看| 国产精品免费av| 国产婷婷色一区二区三区在线| 精品福利一区二区三区| 欧美一区二区二区| 91麻豆国产在线观看| 国产aⅴ精品一区二区三区色成熟| 亚洲一区二区视频| 一区二区免费在线| 亚洲午夜国产一区99re久久| 有码一区二区三区| 一区二区免费看| 天天影视网天天综合色在线播放 | 精品99久久久久久| xnxx国产精品| 国产性做久久久久久| 国产精品毛片a∨一区二区三区| 国产精品理论在线观看| 综合色天天鬼久久鬼色| 一区二区理论电影在线观看| 亚洲高清免费观看| 久久国产日韩欧美精品| 粉嫩一区二区三区在线看| 成人免费视频播放| 国产成人av资源| av欧美精品.com| 色狠狠一区二区三区香蕉| 欧美影院精品一区| 日韩手机在线导航| 国产欧美日韩另类一区| 尤物在线观看一区| 亚洲一区二区三区四区不卡| 一区二区三区高清不卡| 美女久久久精品| 成人精品一区二区三区中文字幕| 成人av在线电影| 欧美肥妇free| 国产午夜亚洲精品理论片色戒| 久久精品男人天堂av| 日韩美女啊v在线免费观看| 亚洲综合色成人| 国内精品在线播放| 99免费精品视频| 日韩免费看的电影| 亚洲欧美日本在线| 日本不卡中文字幕| jlzzjlzz亚洲女人18| 正在播放一区二区| 欧美国产激情一区二区三区蜜月| 亚洲一本大道在线| 成人在线一区二区三区| 欧美少妇性性性| 成人免费小视频| 国产乱妇无码大片在线观看| 99精品黄色片免费大全| 精品sm在线观看| 亚洲人成7777|