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

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

?? tick.c

?? FreeRTOS is a portable, open source, mini Real Time Kernel - a free to download and royalty free RTO
?? C
字號:
/*
	FreeRTOS.org V5.2.0 - Copyright (C) 2003-2009 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 (version 2) as published
	by the Free Software Foundation and modified by the FreeRTOS exception.

	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 is included to allow you 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.


	***************************************************************************
	*                                                                         *
	* Get the FreeRTOS eBook!  See http://www.FreeRTOS.org/Documentation      *
	*                                                                         *
	* This is a concise, step by step, 'hands on' guide that describes both   *
	* general multitasking concepts and FreeRTOS specifics. It presents and   *
	* explains numerous examples that are written using the FreeRTOS API.     *
	* Full source code for all the examples is provided in an accompanying    *
	* .zip file.                                                              *
	*                                                                         *
	***************************************************************************

	1 tab == 4 spaces!

	Please ensure to read the configuration and relevant port sections of the
	online documentation.

	http://www.FreeRTOS.org - Documentation, latest information, license and
	contact details.

	http://www.SafeRTOS.com - A version that is certified for use in safety
	critical systems.

	http://www.OpenRTOS.com - Commercial support, development, porting,
	licensing and training services.
*/

/* 
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一区二区三区免费野_久草精品视频
av激情综合网| 欧美午夜不卡视频| 欧美一区二区三区四区久久| 国产精品乱人伦中文| 丁香网亚洲国际| 亚洲女与黑人做爰| 色噜噜偷拍精品综合在线| 一区二区三区在线免费观看| 色偷偷成人一区二区三区91| 天天影视网天天综合色在线播放| 欧美日本一区二区三区四区| 久久精品国产99国产| 久久女同性恋中文字幕| 在线看日韩精品电影| 亚洲免费视频中文字幕| 欧美日韩卡一卡二| 美女性感视频久久| 国产日韩精品一区二区三区| 91美女在线看| 日本不卡123| 久久久久久久久免费| 91小视频免费观看| 老鸭窝一区二区久久精品| 日本一区二区三区免费乱视频| 国产米奇在线777精品观看| 欧美国产激情二区三区| 91精彩视频在线| 国产成人午夜99999| 一区二区三区在线观看动漫| 日韩精品一区二区三区在线观看| 成人av在线资源网| 久久99精品国产.久久久久久| 亚洲狠狠丁香婷婷综合久久久| 精品国产凹凸成av人导航| 欧美性生活久久| 97成人超碰视| 成人午夜视频福利| 精品一区二区三区在线视频| 日韩中文字幕区一区有砖一区| 亚洲天天做日日做天天谢日日欢| 久久精品人人爽人人爽| 精品国产网站在线观看| 91麻豆精品国产91久久久更新时间 | 国产一区二区免费在线| 日韩和的一区二区| 丝袜美腿亚洲综合| 午夜精品久久久久久久久久久 | 国产精品传媒入口麻豆| 国产亚洲婷婷免费| 久久精品免视看| 国产欧美精品区一区二区三区| 久久日韩粉嫩一区二区三区| www亚洲一区| 欧美国产乱子伦| 国产欧美精品在线观看| 亚洲成人一区在线| 欧美一区二区三区不卡| 国产精品情趣视频| 日韩一区中文字幕| 亚洲国产美女搞黄色| 五月天精品一区二区三区| 日韩国产成人精品| 国产一区二区精品久久91| 国产不卡视频在线观看| 91在线观看污| 欧美高清一级片在线| 久久久影院官网| 亚洲伦在线观看| 亚洲成av人影院| 午夜精品久久久久久久99水蜜桃| 蜜臀av一级做a爰片久久| 久久er精品视频| 91麻豆精品国产91久久久久久久久| 欧美日韩高清不卡| 久久精品一区蜜桃臀影院| 亚洲乱码国产乱码精品精98午夜| 喷水一区二区三区| 色综合激情久久| 国产蜜臀97一区二区三区| 日韩中文字幕亚洲一区二区va在线| 国产成人在线视频播放| 欧美高清视频一二三区 | 色老综合老女人久久久| 精品久久久久99| 日韩国产高清在线| 欧美色视频一区| 亚洲人亚洲人成电影网站色| 国产精品中文字幕日韩精品| 69av一区二区三区| 亚洲18色成人| 欧美天天综合网| 亚洲精品国产a| 欧洲在线/亚洲| 亚洲国产精品人人做人人爽| 在线免费观看日本一区| 伊人性伊人情综合网| 91美女片黄在线观看| 亚洲精品国产视频| 91成人免费网站| 亚洲影院理伦片| 欧美猛男超大videosgay| 午夜精品福利一区二区三区av | 亚洲国产精品99久久久久久久久| 美女视频黄a大片欧美| 欧美一区二区三区免费| 精品一区精品二区高清| 精品国产伦一区二区三区观看体验| 精品在线一区二区| 国产精品系列在线| 日本电影亚洲天堂一区| 亚洲精品视频一区| 欧美一区二区三区成人| 国产成人免费高清| 亚洲色图第一区| 日韩一区二区三区视频在线| 国产v综合v亚洲欧| 一区二区免费看| 亚洲精品一区二区三区香蕉 | 日韩av一级电影| 欧美激情资源网| 欧美美女视频在线观看| 丁香婷婷深情五月亚洲| 制服丝袜av成人在线看| 一区二区三区精品在线| 欧美大片一区二区三区| 国产麻豆精品95视频| 日韩成人精品视频| 欧美一区二区三区男人的天堂| 国产成人在线免费观看| 亚洲成av人片一区二区| 国产亚洲污的网站| 欧美一级二级在线观看| 色8久久精品久久久久久蜜| 国产在线精品免费| 日本美女一区二区| 亚洲夂夂婷婷色拍ww47| 亚洲色图在线播放| 欧美国产在线观看| 2020国产成人综合网| 欧美一二三四在线| 在线观看精品一区| 91免费国产在线观看| 91丨九色porny丨蝌蚪| 成人av手机在线观看| 成人午夜又粗又硬又大| 国产精品888| 成人天堂资源www在线| 99久久综合狠狠综合久久| av色综合久久天堂av综合| 99久久伊人久久99| 不卡区在线中文字幕| 99re在线视频这里只有精品| 99精品视频在线观看免费| 色婷婷亚洲综合| 欧美一区二区三区精品| 国产午夜精品在线观看| ...av二区三区久久精品| 亚洲国产成人tv| 激情综合网天天干| 91免费视频网址| 欧美日韩亚洲高清一区二区| 日韩限制级电影在线观看| 久久久久久久久久看片| 一区二区三区日韩| 美日韩黄色大片| 在线免费不卡电影| 国产肉丝袜一区二区| 亚洲bdsm女犯bdsm网站| 国产成人精品一区二区三区四区 | 欧美激情一区二区三区全黄 | 亚洲综合在线免费观看| 国产老肥熟一区二区三区| 在线观看精品一区| 国产精品久久久久精k8| 日本欧美在线观看| 欧美亚日韩国产aⅴ精品中极品| 久久久久97国产精华液好用吗| 亚洲男同1069视频| 国产呦萝稀缺另类资源| 欧美精品久久一区| 国产精品午夜电影| 久久99精品久久久久婷婷| 欧美日韩免费视频| 亚洲天堂2014| 波多野结衣中文字幕一区二区三区| 91精品国产品国语在线不卡| 夜夜嗨av一区二区三区中文字幕 | 国产sm精品调教视频网站| 精品国产乱码久久久久久蜜臀| 亚洲一区国产视频| 欧美色图一区二区三区| 亚洲综合在线免费观看| 日本高清不卡在线观看| 中文字幕亚洲一区二区va在线| 国产精品88888| 国产精品久久久久国产精品日日| 国产精品99久久久久久久女警 | 久久蜜臀中文字幕| 国产尤物一区二区在线| 欧美经典一区二区三区|