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

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

?? tick.c

?? FreeRTOS V4.2.1,增加了AVR32 UC3 和 LPC2368 的支持
?? C
字號(hào):
/*
	FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 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.

	Also see http://www.SafeRTOS.com for an IEC 61508 compliant version along
	with commercial development and support options.
	***************************************************************************
*/

/* 
Changes from V3.0.0
	+ ISRcode is pulled inline and portTICKisr() is therefore
	  deleted from this file.

	+ Prescaler logic for Timer1 added to allow for a wider
	  range of TickRates.

Changes from V3.0.1
*/

#include <FreeRTOS.h>
#include <task.h>

/* IO port constants. */
#define portBIT_SET		(1)
#define portBIT_CLEAR	(0)

/* 
 * Hardware setup for the tick.
 * We use a compare match on timer1. Depending on MPU-frequency
 * and requested tickrate, a prescaled value with a matching
 * prescaler are determined.
 */
#define	portTIMER_COMPARE_BASE			((APROCFREQ/4)/configTICK_RATE_HZ)

#if portTIMER_COMPARE_BASE   < 0x10000
	#define	portTIMER_COMPARE_VALUE		(portTIMER_COMPARE_BASE)
	#define portTIMER_COMPARE_PS1		(portBIT_CLEAR)
	#define portTIMER_COMPARE_PS0		(portBIT_CLEAR)
#elif portTIMER_COMPARE_BASE < 0x20000
	#define	portTIMER_COMPARE_VALUE		(portTIMER_COMPARE_BASE / 2)
	#define portTIMER_COMPARE_PS1		(portBIT_CLEAR)
	#define portTIMER_COMPARE_PS0		(portBIT_SET)
#elif portTIMER_COMPARE_BASE < 0x40000
	#define	portTIMER_COMPARE_VALUE		(portTIMER_COMPARE_BASE / 4)
	#define portTIMER_COMPARE_PS1		(portBIT_SET)
	#define portTIMER_COMPARE_PS0		(portBIT_CLEAR)
#elif portTIMER_COMPARE_BASE < 0x80000
	#define	portTIMER_COMPARE_VALUE		(portTIMER_COMPARE_BASE / 8)
	#define portTIMER_COMPARE_PS1		(portBIT_SET)
	#define portTIMER_COMPARE_PS0		(portBIT_SET)
#else
	#error "TickRate out of range"
#endif

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

/*
 * Setup a timer for a regular tick.
 */
void portSetupTick( void )
{
	/*
	 * Interrupts are disabled when this function is called.
	 */

	/*
	 * Setup CCP1
	 * Provide the tick interrupt using a compare match on timer1.
	 */

	/*
	 * Set the compare match value.
	 */
	CCPR1H = ( unsigned portCHAR ) ( ( portTIMER_COMPARE_VALUE >> 8 ) & 0xff );
	CCPR1L = ( unsigned portCHAR )   ( portTIMER_COMPARE_VALUE & 0xff );

	/*
	 * Set Compare Special Event Trigger Mode
	 */
	bCCP1M3 	= portBIT_SET;
	bCCP1M2 	= portBIT_CLEAR;
	bCCP1M1 	= portBIT_SET;
	bCCP1M0		= portBIT_SET;

	/*
	 * Enable CCP1 interrupt
	 */
	bCCP1IE 	= portBIT_SET;

	/*
	 * We are only going to use the global interrupt bit, so disable
	 * interruptpriorities and enable peripheral interrupts.
	 */
	bIPEN		= portBIT_CLEAR;
	bPEIE		= portBIT_SET;

	/*
	 * Set up timer1
	 * It will produce the system tick.
	 */

	/*
	 * Clear the time count
	 */
	TMR1H = ( unsigned portCHAR ) 0x00;
	TMR1L = ( unsigned portCHAR ) 0x00;

	/*
	 * Setup the timer
	 */
	bRD16		= portBIT_SET;				// 16-bit
	bT1CKPS1	= portTIMER_COMPARE_PS1;	// prescaler
	bT1CKPS0	= portTIMER_COMPARE_PS0;	// prescaler
	bT1OSCEN	= portBIT_SET;				// Oscillator enable
	bT1SYNC		= portBIT_SET;				// No external clock sync
	bTMR1CS		= portBIT_CLEAR;			// Internal clock
	
	bTMR1ON		= portBIT_SET;				// Start timer1
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国内精品免费在线观看| 亚洲欧美色图小说| 久久99久久99| 久久综合色婷婷| 国产成人精品综合在线观看| 麻豆久久一区二区| 久久免费偷拍视频| 国内精品免费在线观看| 久久综合色一综合色88| 粉嫩一区二区三区在线看| 一色桃子久久精品亚洲| 在线观看视频一区二区| 免费成人在线观看| 日本一区二区成人| 在线一区二区三区做爰视频网站| 亚洲一区二区免费视频| 精品国产一区二区三区不卡| 成人精品国产免费网站| 亚洲综合色视频| 欧美videos大乳护士334| 国产99久久久国产精品潘金网站| 亚洲欧美另类久久久精品| 亚洲福利一二三区| 日韩精品一区二区三区三区免费| 盗摄精品av一区二区三区| 视频一区在线播放| 欧美三区在线观看| 国产综合一区二区| 亚洲三级理论片| 欧美大白屁股肥臀xxxxxx| 丁香激情综合五月| 日韩电影在线看| 国产精品久久久久久久岛一牛影视 | www.一区二区| 亚洲国产成人av| 国产欧美一区在线| 91精品国产欧美一区二区成人| 国产精品一区二区果冻传媒| 亚洲一区二区综合| 国产亚洲一区二区三区在线观看| 欧美性一级生活| 成人午夜电影网站| 另类小说图片综合网| 亚洲免费在线观看视频| 久久九九全国免费| 91精品国产麻豆| 色哟哟亚洲精品| 福利电影一区二区三区| 日本午夜一本久久久综合| 亚洲免费观看高清| 国产欧美va欧美不卡在线| 欧美一级日韩免费不卡| 91高清视频免费看| 99久久精品国产毛片| 国产一二精品视频| 久久国产精品72免费观看| 亚洲国产综合色| 亚洲欧美偷拍三级| 国产精品美女久久久久久| 欧美电视剧在线看免费| 欧美日韩国产精品成人| 91老司机福利 在线| 成人一区二区在线观看| 国产一区二区按摩在线观看| 麻豆专区一区二区三区四区五区| 午夜精品视频一区| 一区二区不卡在线视频 午夜欧美不卡在| 欧美国产亚洲另类动漫| 久久你懂得1024| 亚洲精品一区二区三区99| 日韩亚洲欧美一区二区三区| 777奇米成人网| 欧美日韩三级一区| 欧美日韩国产高清一区二区三区| 欧洲精品一区二区三区在线观看| 色综合久久九月婷婷色综合| heyzo一本久久综合| 91原创在线视频| 一本大道久久a久久精二百 | 欧美男男青年gay1069videost| 91美女在线看| 欧美性感一区二区三区| 欧美午夜影院一区| 欧美日韩视频第一区| 欧美精品久久久久久久多人混战| 欧美日韩日日骚| 欧美一级日韩免费不卡| 精品毛片乱码1区2区3区| 欧美精品一区二区三区四区| 精品少妇一区二区三区视频免付费 | 洋洋av久久久久久久一区| 一区二区三区在线播放| 香蕉加勒比综合久久| 日日夜夜精品视频免费| 欧美aaaaa成人免费观看视频| 久草热8精品视频在线观看| 国产精品一区三区| 99精品在线观看视频| 欧美三级在线播放| 日韩欧美国产精品| 国产欧美一区二区精品忘忧草| 国产精品国产自产拍高清av | 久久久精品影视| 中文字幕一区二区三区不卡在线| 亚洲精品成人精品456| 日韩专区中文字幕一区二区| 精品一区二区三区香蕉蜜桃 | 亚洲精品一二三| 日韩国产欧美在线播放| 国产乱妇无码大片在线观看| 99精品欧美一区二区三区小说| 欧美日韩高清在线播放| 久久免费看少妇高潮| 亚洲欧美日韩中文播放| 麻豆高清免费国产一区| av不卡免费在线观看| 欧美一区二区在线播放| 国产精品无码永久免费888| 亚洲在线视频一区| 国产老妇另类xxxxx| 欧美性猛片xxxx免费看久爱| 精品国产欧美一区二区| 亚洲激情综合网| 国产一区二区视频在线播放| 欧美伊人久久大香线蕉综合69| 精品美女在线播放| 亚洲一区二区三区自拍| 国产精品一区久久久久| 欧美日韩精品一区二区三区四区| 国产丝袜在线精品| 青青青伊人色综合久久| 91麻豆免费看| 久久精品亚洲精品国产欧美| 午夜久久久久久电影| av资源网一区| 久久久久久夜精品精品免费| 亚洲18色成人| 色综合天天做天天爱| 国产欧美视频一区二区| 日本不卡123| 欧美亚洲一区二区三区四区| 日本一区二区三区在线观看| 美国三级日本三级久久99| 欧美性色黄大片| 亚洲老司机在线| 成人激情开心网| 国产亚洲一区二区三区四区| 日韩精品高清不卡| 欧美日韩一区二区欧美激情| 成人免费在线视频| 成人免费视频网站在线观看| 精品福利在线导航| 老司机午夜精品| 在线不卡一区二区| 亚洲成人动漫一区| 在线影视一区二区三区| 亚洲视频在线一区| av一区二区不卡| 中文字幕一区二区三区四区 | 亚洲视频一二区| 成人晚上爱看视频| 欧美激情中文字幕一区二区| 激情都市一区二区| 久久香蕉国产线看观看99| 久久精品国产成人一区二区三区| 欧美一区二区日韩| 日韩中文字幕1| 欧美一级xxx| 另类小说图片综合网| 精品少妇一区二区三区视频免付费| 日本少妇一区二区| 日韩精品专区在线影院重磅| 美女高潮久久久| 久久婷婷综合激情| 国产不卡高清在线观看视频| 国产精品久久久久桃色tv| 成人激情免费网站| 一区二区三区日韩欧美| 欧美性感一区二区三区| 日韩一区精品字幕| 日韩精品一区在线| 国产成人免费在线观看| 国产精品嫩草久久久久| 91视频.com| 丝袜美腿成人在线| 337p粉嫩大胆色噜噜噜噜亚洲| 国产剧情在线观看一区二区| 国产精品色在线观看| 色哟哟国产精品免费观看| 性做久久久久久免费观看| 欧美v国产在线一区二区三区| 国产精品一区专区| 亚洲色图都市小说| 9191成人精品久久| 国产一区二区精品久久99| 国产精品成人在线观看| 欧美日韩亚洲综合一区| 激情五月婷婷综合| 国产精品久久久久久户外露出| 欧美性色aⅴ视频一区日韩精品|