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

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

?? portmacro.h

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

	Changes from V4.5.0

	+ Removed the portENTER_SWITCHING_ISR() and portEXIT_SWITCHING_ISR() macros
	  and replaced them with portYIELD_FROM_ISR() macro.  Application code 
	  should now make use of the portSAVE_CONTEXT() and portRESTORE_CONTEXT()
	  macros as per the V4.5.1 demo code.
*/

#ifndef PORTMACRO_H
#define PORTMACRO_H

#ifdef __cplusplus
extern "C" {
#endif

/*-----------------------------------------------------------
 * 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;												\
}


#define portYIELD_FROM_ISR()		vTaskSwitchContext()
#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()											\
		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 )

#ifdef __cplusplus
}
#endif

#endif /* PORTMACRO_H */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲色图在线播放| 精品国产一区二区精华| 国产美女一区二区三区| 蜜臀av性久久久久蜜臀aⅴ流畅 | 欧美精品久久久久久久久老牛影院| 粉嫩久久99精品久久久久久夜| 国产一区二区三区黄视频 | 欧美成人r级一区二区三区| 欧美日韩一卡二卡三卡 | 天天影视网天天综合色在线播放 | 亚洲午夜久久久| 午夜视频在线观看一区二区三区 | 天堂av在线一区| 婷婷一区二区三区| 日韩中文字幕av电影| 三级不卡在线观看| 精品一区二区免费| 国产露脸91国语对白| 成人一区二区三区在线观看| eeuss鲁片一区二区三区 | 欧美在线免费观看视频| 欧美绝品在线观看成人午夜影视| 欧美精品在欧美一区二区少妇| 欧美日韩不卡一区| 精品国产一区二区三区av性色 | 国产精品乱码妇女bbbb| 亚洲国产精品高清| 樱桃视频在线观看一区| 日韩电影在线观看电影| 国产一区免费电影| 99视频精品免费视频| 欧美日韩亚洲丝袜制服| 精品少妇一区二区三区在线播放 | 色欧美片视频在线观看| 欧美电影一区二区| 国产欧美日韩视频在线观看| 亚洲精品自拍动漫在线| 蜜臀久久99精品久久久画质超高清| 狠狠久久亚洲欧美| 日本韩国视频一区二区| 日韩精品资源二区在线| 国产精品福利一区二区三区| 午夜精品久久久| 国产ts人妖一区二区| 欧美日韩aaaaa| 中文字幕一区二区三区乱码在线| 亚洲大片在线观看| 国产成人午夜精品影院观看视频 | 亚洲成人一区二区| 成人视屏免费看| 日韩欧美激情四射| 洋洋av久久久久久久一区| 国产乱码精品一品二品| 6080午夜不卡| 亚洲精品中文在线观看| 色偷偷久久一区二区三区| 2021国产精品久久精品| 亚洲高清免费在线| 91麻豆自制传媒国产之光| 精品国产乱码久久久久久夜甘婷婷| 一区二区三区日韩欧美| 波多野结衣的一区二区三区| 欧美www视频| 日本成人中文字幕在线视频| 精品日本一线二线三线不卡| 亚洲视频1区2区| 粉嫩13p一区二区三区| 日韩女优制服丝袜电影| 天天综合日日夜夜精品| 欧美视频一二三区| 亚洲尤物在线视频观看| 99re成人精品视频| 中文字幕亚洲成人| 不卡一区二区三区四区| 国产婷婷一区二区| 国产精品99久久久久久有的能看| 日韩一级高清毛片| 蜜乳av一区二区三区| 欧美三区在线观看| 亚洲chinese男男1069| 在线观看网站黄不卡| 亚洲综合免费观看高清在线观看| 99re热这里只有精品免费视频 | 懂色一区二区三区免费观看| 久久久久久影视| 国产精品一区一区| 中文字幕一区二区三区乱码在线| 丰满亚洲少妇av| 中文字幕制服丝袜成人av| 99精品国产视频| 一区二区三区不卡视频| 欧美裸体bbwbbwbbw| 美女一区二区久久| 精品国产乱码久久久久久久| 国产精品一色哟哟哟| 国产精品污网站| 色老综合老女人久久久| 午夜视频久久久久久| 日韩免费观看2025年上映的电影| 久久国产精品区| 国产片一区二区三区| 色综合久久综合网97色综合| 五月开心婷婷久久| 久久色视频免费观看| 91精品在线一区二区| 蜜臀av一区二区在线观看| 久久综合五月天婷婷伊人| 成人av在线播放网址| 亚洲综合免费观看高清完整版| 777午夜精品免费视频| 国产一区二区视频在线| 亚洲欧美日韩国产一区二区三区 | 欧美人体做爰大胆视频| 理论片日本一区| 亚洲视频一二区| 91精品国产综合久久福利软件| 国产一区二区不卡| 一区二区三区不卡在线观看 | 国产精品99久久不卡二区| 日韩毛片高清在线播放| 日韩三区在线观看| 99精品在线观看视频| 久久精品国产99国产精品| 亚洲天堂2014| 久久久www成人免费无遮挡大片| 在线视频你懂得一区二区三区| 久久丁香综合五月国产三级网站 | 一区二区三区成人在线视频| 26uuu久久天堂性欧美| 欧美日韩欧美一区二区| 丁香激情综合五月| 奇米精品一区二区三区在线观看| 国产精品久久一级| xnxx国产精品| 欧美乱妇20p| 日韩欧美亚洲另类制服综合在线 | 亚洲与欧洲av电影| 国产欧美中文在线| 欧美tickling网站挠脚心| 在线观看欧美日本| 成人动漫av在线| 国产一二精品视频| 九一久久久久久| 蜜桃视频在线观看一区| 亚洲成a人v欧美综合天堂| 亚洲另类色综合网站| 国产欧美日韩中文久久| www久久久久| 精品国偷自产国产一区| 欧美一级生活片| 91精品国产一区二区三区蜜臀| 91搞黄在线观看| 在线观看亚洲精品视频| 欧美性猛交xxxx黑人交| 91高清视频免费看| 欧美羞羞免费网站| 欧美亚洲一区三区| 欧美日韩亚洲国产综合| 欧美女孩性生活视频| 欧美日韩国产美| 欧美一区二区三区视频免费播放| 欧美日韩免费电影| 宅男噜噜噜66一区二区66| 欧美精选在线播放| 欧美日高清视频| 日韩一区二区三区视频| 日韩精品专区在线影院重磅| 欧美mv日韩mv国产网站app| 久久先锋资源网| 国产精品国产三级国产aⅴ入口| 中文字幕一区二区三区精华液| 一色屋精品亚洲香蕉网站| 亚洲另类在线视频| 午夜精品福利视频网站| 免费xxxx性欧美18vr| 国产精品一卡二| 91啪在线观看| 91精品国产欧美一区二区成人| 精品国内二区三区| 中文字幕中文字幕中文字幕亚洲无线| 亚洲欧洲国产日韩| 天天做天天摸天天爽国产一区| 免费观看成人av| 成人毛片视频在线观看| 欧美视频在线一区二区三区 | 亚洲欧美日本韩国| 午夜精品久久久久久久久久久| 天使萌一区二区三区免费观看| 久久av中文字幕片| 99精品久久久久久| 日韩精品专区在线影院观看| 一区在线播放视频| 日韩黄色免费网站| www.日韩av| 欧美电视剧在线看免费| 亚洲欧洲精品一区二区精品久久久 | 亚洲综合一区二区三区| 另类小说一区二区三区| 色老综合老女人久久久| 久久久久久9999|