亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
激情欧美一区二区| 视频精品一区二区| 国产午夜精品一区二区三区嫩草 | 免费观看在线色综合| 天天综合网天天综合色| 丝袜诱惑制服诱惑色一区在线观看| 亚洲一区二区三区四区不卡| 亚洲一区二区三区激情| 国产精品一区二区视频| eeuss鲁片一区二区三区在线观看| 国产成人综合亚洲91猫咪| 国产aⅴ综合色| 99re亚洲国产精品| 欧美三级午夜理伦三级中视频| 91精品中文字幕一区二区三区| 91精品国产一区二区三区蜜臀| 欧美一激情一区二区三区| 久久免费电影网| 亚洲日本va午夜在线影院| 亚洲成av人片一区二区三区| 免费成人在线观看视频| 国产成人精品亚洲日本在线桃色| 91视频在线观看| 欧美亚洲一区二区在线| 亚洲精品一区二区三区精华液 | 国产乱码精品一区二区三区忘忧草 | 欧美精品乱人伦久久久久久| 日韩一区二区在线观看| 国产欧美一区二区精品忘忧草 | 91性感美女视频| 欧美一区二区女人| 国产精品进线69影院| 亚洲资源在线观看| 国产一区三区三区| 欧美在线免费播放| 欧美激情一区二区三区在线| 亚洲成人免费看| 成人精品gif动图一区| 欧美区一区二区三区| 国产蜜臀av在线一区二区三区| 亚洲一区自拍偷拍| 国产suv一区二区三区88区| 欧美日韩精品综合在线| 国产精品久久久久久亚洲伦| 亚洲国产美国国产综合一区二区 | 亚洲国产精品自拍| 国产在线一区观看| 欧美日韩在线亚洲一区蜜芽| 国产日韩欧美精品电影三级在线| 性久久久久久久久| 91捆绑美女网站| 久久久久国产成人精品亚洲午夜| 亚洲高清在线视频| 色综合久久中文综合久久牛| 久久蜜桃一区二区| 久久精品99国产国产精| 欧美日韩在线亚洲一区蜜芽| **欧美大码日韩| 国产高清久久久| 日韩美女在线视频| 美女久久久精品| 7777精品伊人久久久大香线蕉超级流畅 | 国产精品久久午夜| 国产精选一区二区三区| 久久免费的精品国产v∧| 奇米精品一区二区三区四区| 欧美在线观看你懂的| 一区二区三区在线不卡| 99久久婷婷国产| 国产精品成人网| 色综合色综合色综合色综合色综合| 国产女同性恋一区二区| 成人免费高清视频| 国产亚洲精品7777| 成人美女视频在线看| 中文字幕久久午夜不卡| bt欧美亚洲午夜电影天堂| 亚洲国产精品精华液2区45| 国产精品夜夜爽| 国产欧美日韩不卡免费| 欧美日韩国产精品自在自线| 午夜免费久久看| 日韩美女一区二区三区四区| 麻豆91免费看| 国产日韩欧美精品一区| 99视频精品在线| 亚洲影院免费观看| 欧美一级欧美三级在线观看 | 国产欧美视频在线观看| 国产精品资源站在线| 中文字幕欧美区| 色婷婷综合久久久久中文一区二区 | 成人动漫精品一区二区| 亚洲欧洲另类国产综合| 欧美性xxxxxx少妇| 美女国产一区二区| 国产日韩视频一区二区三区| 91在线视频免费观看| 亚洲乱码国产乱码精品精的特点| 欧美怡红院视频| 九九精品一区二区| 中文字幕中文字幕在线一区| 欧美日韩午夜影院| 国产伦精品一区二区三区免费迷| 国产精品久久久久久久久搜平片 | 成人性色生活片| 亚洲蜜臀av乱码久久精品 | 国产精品一区专区| 亚洲欧美福利一区二区| 欧美一区二区三区啪啪| 成人免费av资源| 天堂影院一区二区| 国产精品色婷婷| 日韩欧美一二三区| 一本大道综合伊人精品热热 | 成人中文字幕合集| 亚洲国产日韩av| 一区二区中文字幕在线| 日韩午夜电影av| 色诱视频网站一区| 国产一区二区三区日韩 | 国产精品一区三区| 一二三区精品视频| 欧美国产乱子伦| 欧美一级生活片| 欧美这里有精品| 成人免费av网站| 91传媒视频在线播放| 国产宾馆实践打屁股91| 久久99国产精品成人| 五月天激情综合网| 亚洲蜜桃精久久久久久久| 国产亚洲女人久久久久毛片| 欧美一区二区视频网站| 欧美在线免费视屏| 色视频欧美一区二区三区| 丰满白嫩尤物一区二区| 韩国毛片一区二区三区| 裸体一区二区三区| 免费在线观看不卡| 免费高清成人在线| 日韩av在线免费观看不卡| 一区二区成人在线观看| 亚洲视频综合在线| 国产精品久久久久久久岛一牛影视 | 成人不卡免费av| 精品一区二区三区蜜桃| 日韩黄色在线观看| 亚洲愉拍自拍另类高清精品| 亚洲乱码日产精品bd| 亚洲欧美另类小说视频| 亚洲免费观看高清完整版在线观看熊 | 日韩一区二区三区免费观看| 欧美日韩久久久一区| 欧美精品丝袜中出| 91精品久久久久久久99蜜桃| 欧美巨大另类极品videosbest| 日本电影欧美片| 欧美在线一区二区三区| 欧美中文字幕久久 | 紧缚捆绑精品一区二区| 国产在线国偷精品免费看| 激情久久五月天| 国产**成人网毛片九色| 成人禁用看黄a在线| 色激情天天射综合网| 欧美三级日韩三级| 日韩免费福利电影在线观看| 久久午夜国产精品| 亚洲欧洲av另类| 亚洲成va人在线观看| 日韩av在线播放中文字幕| 国内精品在线播放| 波多野结衣一区二区三区 | 麻豆久久一区二区| 丁香啪啪综合成人亚洲小说 | 这里只有精品视频在线观看| 日韩三级在线免费观看| 欧美韩日一区二区三区四区| 一区二区久久久久| 极品美女销魂一区二区三区免费| 国产成人午夜视频| 欧美日韩精品福利| 国产人成一区二区三区影院| 中文字幕一区二区三区不卡 | 亚洲欧洲日韩综合一区二区| 亚洲韩国精品一区| 国产夫妻精品视频| 欧美日韩亚洲另类| 国产精品国产馆在线真实露脸| 亚洲成人免费影院| 成人永久免费视频| 欧美一区二区成人| 亚洲男同性视频| 国产一区二区三区在线观看精品 | 亚洲日本一区二区三区| 一本大道av一区二区在线播放| 日韩天堂在线观看| 亚洲综合999| 成人av网在线|