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

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

?? portmacro.h

?? FreeRtos Source code Version 4.04
?? H
字號:
/*
	FreeRTOS.org V4.0.4 - 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.2.3
	
	+ Modified portENTER_SWITCHING_ISR() to allow use with GCC V4.0.1.

	Changes from V3.2.4

	+ Removed the use of the %0 parameter within the assembler macros and 
	  replaced them with hard coded registers.  This will ensure the
	  assembler does not select the link register as the temp register as
	  was occasionally happening previously.

	+ The assembler statements are now included in a single asm block rather
	  than each line having its own asm block.
*/

#ifndef PORTMACRO_H
#define PORTMACRO_H

/*-----------------------------------------------------------
 * Port specific definitions.  
 *
 * The settings in this file configure FreeRTOS correctly for the
 * given hardware and compiler.
 *
 * These settings should not be altered.
 *-----------------------------------------------------------
 */

/* Type definitions. */
#define portCHAR		char
#define portFLOAT		float
#define portDOUBLE		double
#define portLONG		long
#define portSHORT		short
#define portSTACK_TYPE	unsigned portLONG
#define portBASE_TYPE	portLONG

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

/* Architecture specifics. */
#define portSTACK_GROWTH			( -1 )
#define portTICK_RATE_MS			( ( portTickType ) 1000 / configTICK_RATE_HZ )		
#define portBYTE_ALIGNMENT			4
#define portNOP()					asm volatile ( "NOP" );
/*-----------------------------------------------------------*/	


/* Scheduler utilities. */

/*
 * portRESTORE_CONTEXT, portRESTORE_CONTEXT, portENTER_SWITCHING_ISR
 * and portEXIT_SWITCHING_ISR can only be called from ARM mode, but
 * are included here for efficiency.  An attempt to call one from
 * THUMB mode code will result in a compile time error.
 */

#define portRESTORE_CONTEXT()											\
{																		\
extern volatile void * volatile pxCurrentTCB;							\
extern volatile unsigned portLONG ulCriticalNesting;					\
																		\
	/* Set the LR to the task stack. */									\
	asm volatile (														\
	"LDR		R0, =pxCurrentTCB								\n\t"	\
	"LDR		R0, [R0]										\n\t"	\
	"LDR		LR, [R0]										\n\t"	\
																		\
	/* The critical nesting depth is the first item on the stack. */	\
	/* Load it into the ulCriticalNesting variable. */					\
	"LDR		R0, =ulCriticalNesting							\n\t"	\
	"LDMFD	LR!, {R1}											\n\t"	\
	"STR		R1, [R0]										\n\t"	\
																		\
	/* Get the SPSR from the stack. */									\
	"LDMFD	LR!, {R0}											\n\t"	\
	"MSR		SPSR, R0										\n\t"	\
																		\
	/* Restore all system mode registers for the task. */				\
	"LDMFD	LR, {R0-R14}^										\n\t"	\
	"NOP														\n\t"	\
																		\
	/* Restore the return address. */									\
	"LDR		LR, [LR, #+60]									\n\t"	\
																		\
	/* And return - correcting the offset in the LR to obtain the */	\
	/* correct address. */												\
	"SUBS	PC, LR, #4											\n\t"	\
	);																	\
	( void ) ulCriticalNesting;											\
	( void ) pxCurrentTCB;												\
}
/*-----------------------------------------------------------*/

#define portSAVE_CONTEXT()												\
{																		\
extern volatile void * volatile pxCurrentTCB;							\
extern volatile unsigned portLONG ulCriticalNesting;					\
																		\
	/* Push R0 as we are going to use the register. */					\
	asm volatile (														\
	"STMDB	SP!, {R0}											\n\t"	\
																		\
	/* Set R0 to point to the task stack pointer. */					\
	"STMDB	SP,{SP}^											\n\t"	\
	"NOP														\n\t"	\
	"SUB	SP, SP, #4											\n\t"	\
	"LDMIA	SP!,{R0}											\n\t"	\
																		\
	/* Push the return address onto the stack. */						\
	"STMDB	R0!, {LR}											\n\t"	\
																		\
	/* Now we have saved LR we can use it instead of R0. */				\
	"MOV	LR, R0												\n\t"	\
																		\
	/* Pop R0 so we can save it onto the system mode stack. */			\
	"LDMIA	SP!, {R0}											\n\t"	\
																		\
	/* Push all the system mode registers onto the task stack. */		\
	"STMDB	LR,{R0-LR}^											\n\t"	\
	"NOP														\n\t"	\
	"SUB	LR, LR, #60											\n\t"	\
																		\
	/* Push the SPSR onto the task stack. */							\
	"MRS	R0, SPSR											\n\t"	\
	"STMDB	LR!, {R0}											\n\t"	\
																		\
	"LDR	R0, =ulCriticalNesting								\n\t"	\
	"LDR	R0, [R0]											\n\t"	\
	"STMDB	LR!, {R0}											\n\t"	\
																		\
	/* Store the new top of stack for the task. */						\
	"LDR	R0, =pxCurrentTCB									\n\t"	\
	"LDR	R0, [R0]											\n\t"	\
	"STR	LR, [R0]											\n\t"	\
	);																	\
	( void ) ulCriticalNesting;											\
	( void ) pxCurrentTCB;												\
}


/*-----------------------------------------------------------
 * ISR entry and exit macros.  These are only required if a task switch
 * is required from the ISR.
 *----------------------------------------------------------*/


#define portENTER_SWITCHING_ISR()										\
	/* Save the context of the interrupted task. */						\
	portSAVE_CONTEXT();													\
																		\
	/* We don't know the stack requirements for the ISR, so the frame */\
	/* pointer will be set to the top of the task stack, and the stack*/\
	/* pointer left where it is.  The IRQ stack will get used for any */\
	/* functions calls made by this ISR. */								\
	asm volatile ( "SUB		R11, LR, #4" );							\
	{

#define portEXIT_SWITCHING_ISR( SwitchRequired )						\
		/* If a switch is required then we just need to call */			\
		/* vTaskSwitchContext() as the context has already been */		\
		/* saved. */													\
		if( SwitchRequired )											\
		{																\
			vTaskSwitchContext();										\
		}																\
	}																	\
	/* Restore the context of which ever task is now the highest */		\
	/* priority that is ready to run. */								\
	portRESTORE_CONTEXT();

#define portYIELD()					asm volatile ( "SWI" );	
/*-----------------------------------------------------------*/


/* Critical section management. */

/*
 * The interrupt management utilities can only be called from ARM mode.  When
 * THUMB_INTERWORK is defined the utilities are defined as functions in 
 * portISR.c to ensure a switch to ARM mode.  When THUMB_INTERWORK is not 
 * defined then the utilities are defined as macros here - as per other ports.
 */

#ifdef THUMB_INTERWORK

	extern void vPortDisableInterruptsFromThumb( void ) __attribute__ ((naked));
	extern void vPortEnableInterruptsFromThumb( void ) __attribute__ ((naked));

	#define portDISABLE_INTERRUPTS()	vPortDisableInterruptsFromThumb()
	#define portENABLE_INTERRUPTS()		vPortEnableInterruptsFromThumb()
	
#else

	#define portDISABLE_INTERRUPTS()																\
	#define portDISABLE_INTERRUPTS()											\
		asm volatile (															\
			"STMDB	SP!, {R0}		\n\t"	/* Push R0.						*/	\
			"MRS	R0, CPSR		\n\t"	/* Get CPSR.					*/	\
			"ORR	R0, R0, #0xC0	\n\t"	/* Disable IRQ, FIQ.			*/	\
			"MSR	CPSR, R0		\n\t"	/* Write back modified value.	*/	\
			"LDMIA	SP!, {R0}			" )	/* Pop R0.						*/
			
	#define portENABLE_INTERRUPTS()												\
		asm volatile (															\
			"STMDB	SP!, {R0}		\n\t"	/* Push R0.						*/	\
			"MRS	R0, CPSR		\n\t"	/* Get CPSR.					*/	\
			"BIC	R0, R0, #0xC0	\n\t"	/* Enable IRQ, FIQ.				*/	\
			"MSR	CPSR, R0		\n\t"	/* Write back modified value.	*/	\
			"LDMIA	SP!, {R0}			" )	/* Pop R0.						*/

#endif /* THUMB_INTERWORK */

extern void vPortEnterCritical( void );
extern void vPortExitCritical( void );

#define portENTER_CRITICAL()		vPortEnterCritical();
#define portEXIT_CRITICAL()			vPortExitCritical();
/*-----------------------------------------------------------*/

/* Task function macros as described on the FreeRTOS.org WEB site. */
#define portTASK_FUNCTION_PROTO( vFunction, pvParameters ) void vFunction( void *pvParameters )
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters )

#endif /* PORTMACRO_H */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91碰在线视频| 欧美无人高清视频在线观看| 国产91精品一区二区麻豆网站| 99久久综合国产精品| 欧美电影影音先锋| 一区二区三区 在线观看视频| 五月综合激情网| 不卡av免费在线观看| 日韩免费成人网| 亚洲国产欧美在线人成| 成人国产精品免费网站| 久久久国际精品| 蜜桃视频免费观看一区| 欧美午夜寂寞影院| 中文字幕一区二区三区精华液 | 免费在线观看视频一区| 色综合久久66| 中文字幕亚洲电影| 高清免费成人av| 久久久精品免费观看| 看片网站欧美日韩| 日韩一区二区三区四区| 亚洲777理论| 欧美喷潮久久久xxxxx| 亚洲国产精品久久不卡毛片| 一本色道久久综合精品竹菊| 中文字幕一区在线观看| 成人成人成人在线视频| 欧美国产丝袜视频| 国产成人免费视频精品含羞草妖精| 日韩精品中文字幕在线一区| 日本va欧美va瓶| 日韩精品中文字幕在线不卡尤物 | 欧美精品精品一区| 午夜在线电影亚洲一区| 欧美日韩你懂得| 日韩国产高清影视| 91麻豆精品国产| 免费av成人在线| 久久综合久久综合久久| 精品制服美女久久| 国产午夜精品美女毛片视频| 国产成人在线网站| 中文字幕成人在线观看| 91影院在线免费观看| 夜夜爽夜夜爽精品视频| 欧美丰满嫩嫩电影| 久久www免费人成看片高清| 欧美一卡2卡3卡4卡| 黄色小说综合网站| 中文字幕欧美国产| 色偷偷久久一区二区三区| 亚洲va韩国va欧美va精品| 欧美一区二区免费观在线| 久草在线在线精品观看| 国产精品丝袜一区| 在线精品视频免费观看| 美女诱惑一区二区| 国产精品嫩草影院av蜜臀| 一本色道a无线码一区v| 午夜欧美在线一二页| 337p粉嫩大胆色噜噜噜噜亚洲| 丁香啪啪综合成人亚洲小说| 亚洲一区二区三区中文字幕在线| 欧美一级一区二区| 不卡的av电影在线观看| 亚洲成精国产精品女| 久久久蜜桃精品| 色婷婷精品久久二区二区蜜臂av| 韩国av一区二区| 国产精品无遮挡| 欧美人妖巨大在线| 成人少妇影院yyyy| 奇米影视一区二区三区| 国产欧美一区在线| 欧美伦理影视网| 国产精品羞羞答答xxdd| 亚洲国产综合人成综合网站| 久久久综合视频| 欧美美女一区二区| 成人av在线资源| 久久精品国产色蜜蜜麻豆| 亚洲欧洲在线观看av| 精品剧情v国产在线观看在线| 91亚洲精品一区二区乱码| 国模冰冰炮一区二区| 一区二区三区日本| 国产精品久久久爽爽爽麻豆色哟哟| 欧美理论在线播放| 色呦呦日韩精品| 国产成人无遮挡在线视频| 日韩和欧美的一区| 艳妇臀荡乳欲伦亚洲一区| 国产美女主播视频一区| 欧美肥妇毛茸茸| 成人涩涩免费视频| 日本色综合中文字幕| 国产精品麻豆欧美日韩ww| 欧美一区二区不卡视频| 色综合色狠狠综合色| 成人在线一区二区三区| 久久99国内精品| 美女视频黄久久| 视频在线观看一区| 亚洲大片一区二区三区| 亚洲另类色综合网站| 中文字幕一区二区5566日韩| 久久精品一区二区三区四区| 亚洲精品在线网站| 26uuu色噜噜精品一区二区| 成人免费精品视频| 狠狠色2019综合网| 奇米四色…亚洲| 免费在线看成人av| 久久精品国产精品亚洲红杏| 日韩高清国产一区在线| 午夜一区二区三区视频| 亚洲超碰精品一区二区| 亚洲chinese男男1069| 视频一区欧美日韩| 免费视频最近日韩| 久久国产成人午夜av影院| 精品一区二区在线免费观看| 久久激情综合网| 国产精品正在播放| 不卡一区二区三区四区| 99re热视频精品| 在线观看不卡视频| 欧美精品vⅰdeose4hd| 91精品国产麻豆| 久久久久久久久久久电影| 欧美韩日一区二区三区四区| 中文字幕一区二区三区不卡在线 | 国产午夜三级一区二区三| 日韩精品一区二区三区swag| 精品理论电影在线| 国产日韩欧美激情| 综合久久综合久久| 亚洲国产日韩av| 久久97超碰色| 92精品国产成人观看免费| 91国产福利在线| 日韩精品一区二区三区中文精品| 国产午夜亚洲精品羞羞网站| 亚洲婷婷综合色高清在线| 午夜精品福利一区二区三区蜜桃| 蜜桃视频在线一区| 不卡的av网站| 91精品福利在线一区二区三区| 欧美精品一区二区三区四区| 国产精品乱码人人做人人爱 | 久久精品在线观看| 亚洲精品欧美激情| 国产成人午夜片在线观看高清观看 | 日韩美女啊v在线免费观看| 亚洲制服丝袜av| 精品在线观看免费| 在线观看免费成人| 久久久久国产免费免费| 亚洲一区二区三区四区在线观看 | 日韩精品中文字幕在线不卡尤物| 中文一区在线播放| 视频一区二区三区入口| 成人精品鲁一区一区二区| 欧美午夜精品免费| 国产精品五月天| 免费观看久久久4p| 日本韩国欧美一区| 国产亚洲成年网址在线观看| 亚洲第一福利视频在线| av资源网一区| 精品欧美一区二区在线观看| 亚洲一区二区三区四区在线免费观看 | 成人深夜福利app| 日韩欧美另类在线| 亚洲电影一级黄| 99免费精品视频| 国产天堂亚洲国产碰碰| av成人动漫在线观看| 亚洲成a天堂v人片| 国产精品 欧美精品| 日韩午夜激情免费电影| 亚洲美女一区二区三区| 成人在线视频一区二区| 精品日韩欧美一区二区| 视频一区视频二区中文字幕| 欧美性大战久久| 亚洲色图欧洲色图| 成人a区在线观看| 欧美国产在线观看| 国产99一区视频免费| 欧美大胆一级视频| 久久激情综合网| 欧美一区二区黄色| 日韩综合一区二区| 制服丝袜亚洲播放| 日韩精品视频网站| 欧美一级淫片007| 麻豆精品久久精品色综合| 欧美一区二区三区免费大片|