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

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

?? tick.c

?? FreeRTOSV4.1.0 安裝文件 FreeRTOS 是一個源碼公開的免費的嵌入式實時操作系統
?? C
字號:
/*
	FreeRTOS.org V4.1.0 - 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
	+ 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一区二区三区免费野_久草精品视频
一区二区三区欧美日韩| 欧美亚洲国产一区在线观看网站| 精品欧美一区二区久久| 婷婷开心激情综合| 91免费在线播放| 国产欧美一区二区三区沐欲| 久久成人麻豆午夜电影| 精品国一区二区三区| 美女在线视频一区| 精品国产电影一区二区 | 精品一区二区免费在线观看| 在线不卡欧美精品一区二区三区| 午夜伊人狠狠久久| 91精品国产一区二区三区香蕉| 亚洲国产日韩一级| 欧美美女一区二区三区| 国产欧美一区二区在线观看| 成人一区二区三区视频 | 激情欧美一区二区三区在线观看| 麻豆一区二区在线| 国产精品久久久久影院亚瑟| 91婷婷韩国欧美一区二区| 国产精品不卡视频| 欧美日韩国产不卡| 久久精品999| 亚洲国产精品精华液2区45| 麻豆91免费观看| 久久久久久久久免费| 成人毛片老司机大片| 亚洲欧美欧美一区二区三区| 欧美午夜宅男影院| 经典三级一区二区| 成人免费小视频| 丰满少妇在线播放bd日韩电影| 中文字幕中文字幕一区| 在线精品视频一区二区三四| 亚洲一区中文日韩| 日韩美一区二区三区| 成人午夜免费视频| 亚洲国产wwwccc36天堂| 日韩欧美国产一二三区| 国产.欧美.日韩| 亚洲国产成人av网| 国产清纯美女被跳蛋高潮一区二区久久w| 美女视频黄a大片欧美| 日韩一区日韩二区| 欧美一级生活片| 91尤物视频在线观看| 午夜视频一区在线观看| 欧美精品一区视频| 欧美三级一区二区| 国产精品影视天天线| 欧美体内she精视频| 国内精品写真在线观看| 亚洲综合色视频| 337p亚洲精品色噜噜| 91久久精品午夜一区二区| 精品在线播放午夜| 亚洲精品国产视频| 精品国一区二区三区| 欧美性色黄大片| 日本一道高清亚洲日美韩| 日韩欧美电影一区| 欧美性大战久久久久久久| 国产精品自产自拍| 丝瓜av网站精品一区二区| 国产精品五月天| 7777精品伊人久久久大香线蕉| 91一区二区三区在线播放| 国产福利不卡视频| 裸体在线国模精品偷拍| 国产精品久久久久一区| 欧美一区二区三区四区五区| 色呦呦日韩精品| 青青草91视频| 亚洲chinese男男1069| 亚洲欧美aⅴ...| 国产精品久久久久天堂| 国产欧美日韩在线视频| 欧美高清www午色夜在线视频| 91视视频在线观看入口直接观看www| 亚洲欧美日韩成人高清在线一区| 国产欧美精品日韩区二区麻豆天美| 在线播放一区二区三区| 欧美怡红院视频| 在线视频中文字幕一区二区| 91麻豆自制传媒国产之光| 成人精品gif动图一区| 麻豆国产欧美日韩综合精品二区| 国产精品嫩草影院com| 久久先锋资源网| 精品国产网站在线观看| 久久人人爽爽爽人久久久| 日韩精品综合一本久道在线视频| 欧美亚洲综合久久| 成人网页在线观看| 成人a区在线观看| 成人伦理片在线| 97成人超碰视| 亚洲一级二级三级在线免费观看| 欧美老人xxxx18| 欧美日韩成人在线一区| 成人短视频下载| 欧美日韩高清一区二区不卡| 51久久夜色精品国产麻豆| 日韩欧美你懂的| 久久综合色8888| 久久精品亚洲精品国产欧美| 国产精品久久久久天堂| 亚洲精品第1页| 日韩高清在线电影| 国产一区二区网址| 狠狠色丁香久久婷婷综| 成人黄色av电影| 色88888久久久久久影院野外| 色婷婷综合五月| www成人在线观看| 亚洲综合一区二区| 久久爱另类一区二区小说| 色综合天天综合色综合av| 欧美日韩亚洲综合在线 | 亚洲国产精品一区二区www在线| 亚洲午夜久久久久中文字幕久| 蜜桃免费网站一区二区三区| 成人综合激情网| 成人性视频免费网站| 欧美日韩一区在线| 国产欧美日韩久久| 中文字幕免费一区| 天堂资源在线中文精品| 国产精品一区二区91| 色视频成人在线观看免| 制服丝袜一区二区三区| 国产精品久久久久久久蜜臀| 亚洲一区二区三区免费视频| 国产精品99久久久久久久女警 | 日本一不卡视频| 播五月开心婷婷综合| 在线观看亚洲a| 国产亚洲一二三区| 三级一区在线视频先锋| 色美美综合视频| 久久久久国色av免费看影院| 一本久久a久久免费精品不卡| a在线欧美一区| 日韩一区二区免费在线观看| 亚洲综合在线观看视频| 韩日欧美一区二区三区| 日韩一区二区高清| 亚洲人成在线播放网站岛国| 国产乱对白刺激视频不卡| 欧美艳星brazzers| 337p日本欧洲亚洲大胆精品| 日本视频在线一区| 日本道色综合久久| 1000精品久久久久久久久| 精品影视av免费| 欧美一区二区三区日韩| 亚洲精品日韩综合观看成人91| 国产91清纯白嫩初高中在线观看| 91精品欧美久久久久久动漫| 精品捆绑美女sm三区| 美脚の诱脚舐め脚责91 | 麻豆国产一区二区| 欧美亚洲一区二区三区四区| 日韩欧美的一区二区| 日韩av一二三| 欧美精品vⅰdeose4hd| 一区二区三区在线观看网站| caoporn国产一区二区| 亚洲欧美一区二区在线观看| 国产一区二区在线看| 中文字幕第一区二区| 国产精品一区二区三区网站| 久久久久久夜精品精品免费| 国产一区二区中文字幕| 欧美久久久久久久久| 午夜精品久久久久影视| 9191国产精品| 日本不卡的三区四区五区| 成人综合日日夜夜| 一区二区三区欧美日| 色一区在线观看| 午夜久久久久久久久| 欧美视频在线一区二区三区| 日韩中文字幕亚洲一区二区va在线| 欧美最新大片在线看| 日本不卡视频在线| 精品少妇一区二区三区视频免付费| 精品亚洲成av人在线观看| 2020日本不卡一区二区视频| 麻豆传媒一区二区三区| 国产欧美在线观看一区| 成人午夜碰碰视频| 亚洲成年人网站在线观看| 在线成人小视频| 国产精品1区2区| 综合欧美一区二区三区| 欧美日韩国产小视频| 日本麻豆一区二区三区视频|