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

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

?? portmacro.h

?? STM32 FreeRTOS v5.2移植源代碼
?? H
?? 第 1 頁 / 共 2 頁
字號:
/*
	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

Changes from V3.0.1
*/
#ifndef PORTMACRO_H
#define PORTMACRO_H

#if !defined(_SERIES) || _SERIES != 18
	#error "WizC supports FreeRTOS on the Microchip PIC18-series only"
#endif

#if !defined(QUICKCALL) || QUICKCALL != 1
	#error "QuickCall must be enabled (see ProjectOptions/Optimisations)"
#endif

#include <stddef.h>
#include <pic.h>

#define portCHAR		char
#define portFLOAT		float
#define portDOUBLE		portFLOAT
#define portLONG		long
#define portSHORT		short
#define portSTACK_TYPE	unsigned char
#define portBASE_TYPE	char

#if( configUSE_16_BIT_TICKS == 1 )
	typedef unsigned portSHORT portTickType;
	#define portMAX_DELAY ( portTickType )	( 0xFFFF )
#else
	typedef unsigned portLONG portTickType;
	#define portMAX_DELAY ( portTickType )	( 0xFFFFFFFF )
#endif

#define portBYTE_ALIGNMENT			1

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

/*
 * Constant used for context switch macro when we require the interrupt 
 * enable state to be forced when the interrupted task is switched back in.
 */
#define portINTERRUPTS_FORCED				(0x01)

/*
 * Constant used for context switch macro when we require the interrupt 
 * enable state to be unchanged when the interrupted task is switched back in.
 */
#define portINTERRUPTS_UNCHANGED			(0x00)

/* Initial interrupt enable state for newly created tasks.  This value is
 * used when a task switches in for the first time.
 */
#define portINTERRUPTS_INITIAL_STATE		(portINTERRUPTS_FORCED)

/*
 * Macros to modify the global interrupt enable bit in INTCON.
 */
#define portDISABLE_INTERRUPTS()	\
	do								\
	{								\
		bGIE=0;						\
	} while(bGIE)	// MicroChip recommends this check!
	
#define portENABLE_INTERRUPTS()		\
	do								\
	{								\
		bGIE=1;						\
	} while(0)

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

/*
 * Critical section macros.
 */
extern unsigned portCHAR ucCriticalNesting;

#define portNO_CRITICAL_SECTION_NESTING		( ( unsigned portCHAR ) 0 )

#define portENTER_CRITICAL()										\
	do																\
	{																\
		portDISABLE_INTERRUPTS();									\
																	\
		/*															\
		 * Now interrupts are disabled ucCriticalNesting			\
		 * can be accessed directly. Increment						\
		 * ucCriticalNesting to keep a count of how					\
		 * many times portENTER_CRITICAL() has been called. 		\
		 */															\
		ucCriticalNesting++;										\
	} while(0)

#define portEXIT_CRITICAL()											\
	do																\
	{																\
		if(ucCriticalNesting > portNO_CRITICAL_SECTION_NESTING)		\
		{															\
			/*														\
			 * Decrement the nesting count as we are leaving a		\
			 * critical section.									\
			 */														\
			ucCriticalNesting--;									\
		}															\
																	\
		/*															\
		 * If the nesting level has reached zero then				\
		 * interrupts should be re-enabled.							\
		 */															\
		if( ucCriticalNesting == portNO_CRITICAL_SECTION_NESTING )	\
		{															\
			portENABLE_INTERRUPTS();								\
		}															\
	} while(0)

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

/*
 * The minimal stacksize is calculated on the first reference of
 * portMINIMAL_STACK_SIZE. Some input to this calculation is
 * compiletime determined, other input is port-defined (see port.c)
 */
extern unsigned portSHORT usPortCALCULATE_MINIMAL_STACK_SIZE( void );
extern unsigned portSHORT usCalcMinStackSize;

#define portMINIMAL_STACK_SIZE					\
	((usCalcMinStackSize == 0)					\
		? usPortCALCULATE_MINIMAL_STACK_SIZE()	\
		: usCalcMinStackSize )

/*
 * WizC uses a downgrowing stack
 */
#define portSTACK_GROWTH			( -1 )

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

/*
 * Macro's that pushes all the registers that make up the context of a task onto
 * the stack, then saves the new top of stack into the TCB. TOSU and TBLPTRU
 * are only saved/restored on devices with more than 64kB (32k Words) ROM.
 * 
 * The stackpointer is helt by WizC in FSR2 and points to the first free byte.
 * WizC uses a "downgrowing" stack. There is no framepointer.
 *
 * We keep track of the interruptstatus using ucCriticalNesting. When this
 * value equals zero, interrupts have to be enabled upon exit from the
 * portRESTORE_CONTEXT macro.
 * 
 * If this is called from an ISR then the interrupt enable bits must have been 
 * set for the ISR to ever get called.  Therefore we want to save
 * ucCriticalNesting with value zero. This means the interrupts will again be
 * re-enabled when the interrupted task is switched back in.
 *
 * If this is called from a manual context switch (i.e. from a call to yield),
 * then we want to keep the current value of ucCritialNesting so it is restored
 * with its current value. This allows a yield from within a critical section.
 *
 * The compiler uses some locations at the bottom of RAM for temporary
 * storage. The compiler may also have been instructed to optimize
 * function-parameters and local variables to global storage. The compiler
 * uses an area called LocOpt for this wizC feature.
 * The total overheadstorage has to be saved in it's entirety as part of
 * a task context. These macro's store/restore from data address 0x0000 to
 * (OVERHEADPAGE0-LOCOPTSIZE+MAXLOCOPTSIZE - 1).
 * OVERHEADPAGE0, LOCOPTSIZE and MAXLOCOPTSIZE are compiler-generated
 * assembler definitions.
 */

#define	portSAVE_CONTEXT( ucInterruptForced )						\

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产盗摄一区二区| 中文字幕不卡在线| 日本欧美在线观看| 国产三级欧美三级日产三级99| 91一区二区在线观看| 久久精品国产一区二区三| 亚洲欧美日韩一区| 日韩西西人体444www| 91在线播放网址| 国产成人午夜高潮毛片| 蜜桃av噜噜一区二区三区小说| 亚洲欧美另类图片小说| 国产精品日日摸夜夜摸av| 日本一区二区三区四区| 国产午夜精品福利| 欧美tickling网站挠脚心| 欧美高清视频不卡网| 欧美剧在线免费观看网站 | 亚洲欧洲精品一区二区精品久久久| 一本大道久久a久久综合| 国产一区二区三区四| 国产在线视频一区二区三区| 天堂成人免费av电影一区| 中文字幕成人av| 国产精品女主播av| 亚洲国产精品一区二区尤物区| 亚洲午夜精品网| 另类的小说在线视频另类成人小视频在线| 亚洲成a人片综合在线| 午夜精品久久久久影视| 天堂va蜜桃一区二区三区漫画版| 日韩国产精品久久久久久亚洲| 日韩精品一区第一页| 青青草视频一区| 国模套图日韩精品一区二区| 精品一区免费av| 久久久美女毛片| 亚洲一区二区三区影院| 黄色日韩三级电影| 成人午夜免费视频| 成人97人人超碰人人99| 91麻豆精品国产91久久久久久久久 | 亚洲国产中文字幕在线视频综合| 亚洲欧洲日韩在线| 亚洲成在人线在线播放| 视频一区在线播放| 国内精品不卡在线| 色综合色综合色综合色综合色综合| 色婷婷国产精品久久包臀| 97超碰欧美中文字幕| 欧美日韩国产综合草草| 精品国产一区二区三区忘忧草| 国产精品毛片大码女人| 91亚洲国产成人精品一区二区三 | 国产精品久久久久久久久果冻传媒| 在线观看91视频| 欧美综合视频在线观看| 久久色在线视频| 国产精品一区二区三区99| 欧美精品一区二区久久久| 国产成人综合亚洲91猫咪| 成人动漫一区二区| 日韩视频不卡中文| 精品国产伦一区二区三区免费 | 日本不卡视频在线| 亚洲国产欧美日韩另类综合| 亚洲电影第三页| 欧美一区二区三级| 亚洲国产精品国自产拍av| 午夜av电影一区| 99久久久精品免费观看国产蜜| 中文欧美字幕免费| 精品伦理精品一区| 波多野结衣视频一区| 水野朝阳av一区二区三区| 日韩美女主播在线视频一区二区三区 | 91免费在线看| 欧美r级在线观看| 亚洲综合另类小说| 91香蕉视频mp4| 国产欧美日韩在线视频| 亚洲国产精品一区二区www| 色综合一个色综合亚洲| 中文字幕欧美激情一区| 国产精品一区二区不卡| 精品美女被调教视频大全网站| 无码av免费一区二区三区试看| 国内成+人亚洲+欧美+综合在线| 91精品福利视频| 亚洲人成网站影音先锋播放| 成人动漫在线一区| 国产精品你懂的| 成人av在线影院| 国产欧美日韩综合| 高清久久久久久| 国产偷国产偷精品高清尤物 | 欧美性一级生活| 亚洲素人一区二区| 成人高清视频在线观看| 亚洲婷婷综合色高清在线| 91丨porny丨中文| 亚洲一区二区三区中文字幕| 欧美视频一区二区三区在线观看| 亚洲乱码国产乱码精品精小说 | 久久久久久久久久久久电影| 国产精品影音先锋| 国产欧美一二三区| 风间由美中文字幕在线看视频国产欧美 | 亚洲第一电影网| 在线影院国内精品| 亚洲欧美电影一区二区| 在线看国产日韩| 日韩中文字幕一区二区三区| 欧美日韩一区久久| 美国欧美日韩国产在线播放| 精品久久人人做人人爽| 国产精品一区二区免费不卡 | av电影在线观看一区| 一区二区三区波多野结衣在线观看 | av网站免费线看精品| 亚洲国产人成综合网站| 精品欧美一区二区三区精品久久| 国产乱人伦偷精品视频不卡| 亚洲色图欧洲色图婷婷| 在线看不卡av| 日韩福利视频导航| 中文字幕乱码一区二区免费| 在线视频欧美区| 精品一区二区三区欧美| 亚洲黄色av一区| 欧美变态tickling挠脚心| av电影天堂一区二区在线观看| 亚洲一区中文在线| av电影在线观看一区| 日韩成人午夜电影| 亚洲狠狠爱一区二区三区| 中文字幕在线观看不卡| 久久婷婷久久一区二区三区| 欧美日韩dvd在线观看| 91久久精品网| 色999日韩国产欧美一区二区| 懂色av一区二区在线播放| 国产精一区二区三区| 精彩视频一区二区| 久久国产麻豆精品| 美女免费视频一区二区| 婷婷中文字幕一区三区| 亚洲成av人片一区二区三区| 亚洲激情六月丁香| 亚洲国产日韩精品| 午夜电影久久久| 日韩黄色免费电影| 日本欧美一区二区三区| 男人操女人的视频在线观看欧美| 亚洲图片欧美色图| 日韩精品一级中文字幕精品视频免费观看 | 7777精品伊人久久久大香线蕉 | 成人免费精品视频| 欧美又粗又大又爽| 欧美日韩一区二区三区视频| 欧美日韩一区二区三区免费看 | 久久久不卡网国产精品二区| 欧美在线一二三| 欧美日韩国产天堂| 国产做a爰片久久毛片| 亚洲精品国产成人久久av盗摄 | 欧美三级电影网站| 国产福利视频一区二区三区| 日本一不卡视频| 午夜精品成人在线| 日韩在线a电影| 成人综合日日夜夜| 日韩一二三区不卡| 26uuuu精品一区二区| 欧美激情一区二区三区不卡| 亚洲色图欧洲色图婷婷| 视频一区在线播放| 国产精品一区二区你懂的| www.成人在线| 日韩一级黄色片| 国产精品不卡一区二区三区| 一级做a爱片久久| 老司机精品视频导航| 99国产精品国产精品毛片| 欧美日韩精品是欧美日韩精品| 日韩免费看网站| 中文字幕日本不卡| 另类小说图片综合网| 成+人+亚洲+综合天堂| 国产性色一区二区| 亚洲午夜电影在线观看| 91在线观看一区二区| 国产欧美日韩在线视频| 一区二区激情小说| 一区二区三区在线不卡| 国产成人鲁色资源国产91色综| av午夜精品一区二区三区| 欧美日韩三级在线| 国产日韩v精品一区二区| 五月婷婷综合激情|