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

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

?? tick.c

?? The download includes the kernel source code, and a demo application for EVERY RTOS port. See http:
?? C
字號:
/*
	FreeRTOS V4.0.1 - 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.
	***************************************************************************
*/

/* 
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
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99精品一区二区三区| 国产美女精品人人做人人爽| 国产欧美精品一区二区三区四区 | 国产精品99久久久久久有的能看| 丝袜美腿高跟呻吟高潮一区| 亚洲成人你懂的| 日韩电影在线免费观看| 午夜av一区二区| 日本视频中文字幕一区二区三区| 日日噜噜夜夜狠狠视频欧美人| 亚洲福利国产精品| 视频一区欧美日韩| 极品少妇xxxx精品少妇| 国产精品自拍毛片| av中文字幕不卡| 色老综合老女人久久久| 欧美日韩在线电影| 日韩亚洲电影在线| 久久免费国产精品| 亚洲人成伊人成综合网小说| 亚洲综合一区二区三区| 日韩精品成人一区二区在线| 韩国一区二区在线观看| 丰满少妇在线播放bd日韩电影| www.欧美亚洲| 欧美性videosxxxxx| 欧美一级欧美一级在线播放| 久久亚区不卡日本| 亚洲视频精选在线| 免费精品99久久国产综合精品| 久久不见久久见免费视频7| 成人丝袜视频网| 欧美三日本三级三级在线播放| 日韩精品中文字幕在线不卡尤物| 欧美高清在线视频| 一区二区久久久久| 国产乱子伦视频一区二区三区 | **欧美大码日韩| 日韩高清在线观看| 丰满白嫩尤物一区二区| 欧美日韩一二三| 国产精品乱码人人做人人爱| 婷婷亚洲久悠悠色悠在线播放| 高清不卡一二三区| 欧美一区午夜视频在线观看| √…a在线天堂一区| 青青草精品视频| 91豆麻精品91久久久久久| 欧美mv和日韩mv的网站| 一区二区三区.www| 懂色av噜噜一区二区三区av| 日韩精品一区二区三区视频 | 欧美精品一区二区精品网| 亚洲精品国产精华液| 国产成人免费视频一区| 日韩午夜激情视频| 亚洲成a人片在线观看中文| 成人av在线观| 国产欧美一区二区精品忘忧草| 日韩av电影免费观看高清完整版在线观看 | 成人免费视频在线观看| 麻豆成人久久精品二区三区小说| 在线观看欧美日本| 亚洲色欲色欲www| 成人一二三区视频| 久久久精品一品道一区| 久久99国内精品| 欧美精品久久久久久久多人混战| 亚洲激情校园春色| 91蜜桃网址入口| 亚洲色图丝袜美腿| 一本在线高清不卡dvd| 国产精品国产三级国产有无不卡| 国产精品一线二线三线精华| 久久亚区不卡日本| 国产精品一级在线| 久久久久久久精| 国产剧情一区在线| 久久精品人人做人人综合| 国产一区二区日韩精品| 久久尤物电影视频在线观看| 国产在线国偷精品产拍免费yy| 精品久久久久久亚洲综合网| 韩国三级在线一区| 久久久久久夜精品精品免费| 国产精品18久久久久久久网站| 久久久久青草大香线综合精品| 国产一区二区日韩精品| 国产精品女主播av| 色综合天天综合网天天狠天天| 亚洲制服丝袜av| 555www色欧美视频| 麻豆一区二区在线| 国产亚洲欧美在线| a4yy欧美一区二区三区| 亚洲制服丝袜在线| 欧美成人三级在线| 成人av资源在线观看| 一区二区三区四区国产精品| 欧美日韩精品免费| 狠狠色丁香婷综合久久| 国产精品久久免费看| 91久久精品国产91性色tv| 奇米色一区二区三区四区| 久久久777精品电影网影网| bt欧美亚洲午夜电影天堂| 亚洲在线视频一区| 亚洲精品在线观| 91国偷自产一区二区开放时间| 亚洲超碰精品一区二区| 久久久av毛片精品| 欧美三级视频在线观看| 国产乱对白刺激视频不卡| 亚洲与欧洲av电影| 精品国产乱码久久久久久久久 | 欧美精品丝袜久久久中文字幕| 精品写真视频在线观看| 依依成人精品视频| 精品国产百合女同互慰| 色婷婷精品大在线视频| 国产在线日韩欧美| 亚洲国产你懂的| 中文字幕在线播放不卡一区| 91精品视频网| 色成年激情久久综合| 韩国成人精品a∨在线观看| 亚洲一二三四久久| 国产目拍亚洲精品99久久精品| 欧美日韩不卡在线| 91丨九色丨尤物| 国产精品亚洲午夜一区二区三区| 丝袜脚交一区二区| 亚洲精品视频在线观看免费 | 不卡av在线网| 精久久久久久久久久久| 亚洲一二三区视频在线观看| 国产精品视频第一区| 欧美sm极限捆绑bd| 欧美人伦禁忌dvd放荡欲情| 91在线云播放| 99久久综合国产精品| 国产成人在线网站| 国产真实乱对白精彩久久| 蜜臀av一区二区在线免费观看| 一区二区免费在线| 伊人夜夜躁av伊人久久| 亚洲欧美中日韩| 国产精品欧美一级免费| 国产婷婷色一区二区三区四区| 精品国产成人系列| 精品国精品国产| 久久综合中文字幕| 精品国产一区二区三区久久影院| 91精品蜜臀在线一区尤物| 欧美日本韩国一区| 在线播放中文字幕一区| 欧美喷水一区二区| 2021中文字幕一区亚洲| 日韩欧美国产综合| 精品久久久久久亚洲综合网| 精品国产91九色蝌蚪| www欧美成人18+| 国产欧美日韩精品在线| 国产欧美一区二区三区网站| 中文成人综合网| 亚洲欧美一区二区在线观看| 亚洲欧美另类久久久精品| 亚洲综合久久久久| 日韩精品一级中文字幕精品视频免费观看 | 成人欧美一区二区三区在线播放| 国产精品进线69影院| 亚洲欧美国产高清| 亚洲高清在线视频| 蜜桃视频第一区免费观看| 国产精品一区二区你懂的| 国产成人免费视频网站| 色爱区综合激月婷婷| 欧美日韩不卡视频| 久久久精品日韩欧美| 亚洲黄色在线视频| 老司机精品视频导航| 国产v日产∨综合v精品视频| 日本精品视频一区二区三区| 91精品国产福利在线观看| 国产日本一区二区| 亚洲高清免费视频| 国产精品亚洲成人| 日本道色综合久久| 精品久久久久久久久久久久久久久久久 | 九九国产精品视频| 99vv1com这只有精品| 欧美一区二区久久久| 中文字幕av一区二区三区免费看 | 91美女视频网站| 欧美成人性福生活免费看| 自拍偷拍亚洲欧美日韩| 精品一区二区三区在线观看| 色婷婷久久久亚洲一区二区三区 | 国产精品麻豆久久久| 日韩精品高清不卡|