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

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

?? portmacro.h

?? FreeRTOSV3.2.0 經典嵌入式操作系統
?? H
字號:
/*
	FreeRTOS V3.2.0 - Copyright (C) 2003 - 2005 Richard Barry.

	This file is part of the FreeRTOS distribution.

	FreeRTOS 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 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; 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, 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.
	***************************************************************************
*/


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


/* 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, %0" : : "m" (pxCurrentTCB) );			\
	asm volatile ( "LDR		LR, [R0]" );								\
																		\
	/* The critical nesting depth is the first item on the stack. */	\
	/* Load it into the ulCriticalNesting variable. */					\
	asm volatile ( "LDR		R0, =ulCriticalNesting" );					\
	asm volatile ( "LDMFD	LR!, {R1}" );								\
	asm volatile ( "STR		R1, [R0]" );								\
																		\
	/* Get the SPSR from the stack. */									\
	asm volatile ( "LDMFD	LR!, {R0}" );								\
	asm volatile ( "MSR		SPSR, R0" );								\
																		\
	/* Restore all system mode registers for the task. */				\
	asm volatile ( "LDMFD	LR, {R0-R14}^" );							\
	asm volatile ( "NOP" );												\
																		\
	/* Restore the return address. */									\
	asm volatile ( "LDR		LR, [LR, #+60]" );							\
																		\
	/* And return - correcting the offset in the LR to obtain the */	\
	/* correct address. */												\
	asm volatile ( "SUBS	PC, LR, #4" );								\
	( void ) ulCriticalNesting;											\
}
/*-----------------------------------------------------------*/

#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}" );								\
																		\
	/* Set R0 to point to the task stack pointer. */					\
	asm volatile ( "STMDB	SP,{SP}^" );								\
	asm volatile ( "SUB		SP, SP, #4" );								\
	asm volatile ( "LDMIA	SP!,{R0}" );								\
																		\
	/* Push the return address onto the stack. */						\
	asm volatile ( "STMDB	R0!, {LR}" );								\
																		\
	/* Now we have saved LR we can use it instead of R0. */				\
	asm volatile ( "MOV		LR, R0" );									\
																		\
	/* Pop R0 so we can save it onto the system mode stack. */			\
	asm volatile ( "LDMIA	SP!, {R0}" );								\
																		\
	/* Push all the system mode registers onto the task stack. */		\
	asm volatile ( "STMDB	LR,{R0-LR}^");								\
	asm volatile ( "SUB		LR, LR, #60" );								\
																		\
	/* Push the SPSR onto the task stack. */							\
	asm volatile ( "MRS		R0, SPSR" );								\
	asm volatile ( "STMDB	LR!, {R0}" );								\
																		\
	asm volatile ( "LDR		R0, =ulCriticalNesting " );					\
	asm volatile ( "LDR		R0, [R0]" );								\
	asm volatile ( "STMDB	LR!, {R0}" );								\
																		\
	/* Store the new top of stack for the task. */						\
	asm volatile ( "LDR		R0, %0" : : "m" (pxCurrentTCB) );			\
	asm volatile ( "STR		LR, [R0]" );								\
	( void ) ulCriticalNesting;											\
}


/*-----------------------------------------------------------
 * 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 ( "MOV		R11, LR" );									\
	{

#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()																\
		asm volatile ( "STMDB	SP!, {R0}" );		/* Push R0.									*/	\
		asm volatile ( "MRS		R0, CPSR" );		/* Get CPSR.								*/	\
		asm volatile ( "ORR		R0, R0, #0xC0" );	/* Disable IRQ, FIQ.						*/	\
		asm volatile ( "MSR		CPSR, R0" );		/* Write back modified value.				*/	\
		asm volatile ( "LDMIA	SP!, {R0}" )		/* Pop R0.									*/
			
	#define portENABLE_INTERRUPTS()																	\
		asm volatile ( "STMDB	SP!, {R0}" );		/* Push R0.									*/	\
		asm volatile ( "MRS		R0, CPSR" );		/* Get CPSR.								*/	\
		asm volatile ( "BIC		R0, R0, #0xC0" );	/* Enable IRQ, FIQ.							*/	\
		asm volatile ( "MSR		CPSR, R0" );		/* Write back modified value.				*/	\
		asm volatile ( "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一区二区三区免费野_久草精品视频
国产高清成人在线| 欧美在线999| 色综合av在线| 日韩精品中文字幕一区| 中文字幕在线免费不卡| 韩国v欧美v亚洲v日本v| 91成人免费在线| 国产精品毛片久久久久久久| 老司机一区二区| 欧美日韩午夜在线| 国产精品卡一卡二| 国产综合久久久久久鬼色| 欧美福利电影网| 亚洲猫色日本管| 从欧美一区二区三区| 精品国产99国产精品| 五月激情综合网| 欧美无砖砖区免费| 亚洲视频免费在线观看| 成人午夜视频福利| 国产丝袜美腿一区二区三区| 蜜桃久久av一区| 欧美一三区三区四区免费在线看| 亚洲综合成人在线视频| 色哟哟亚洲精品| 一区二区在线观看视频| 92精品国产成人观看免费 | 毛片av一区二区三区| 欧美色中文字幕| 亚洲伊人伊色伊影伊综合网| 色综合色综合色综合| 蜜桃视频在线一区| 91精品国产手机| 美女尤物国产一区| 欧美成人r级一区二区三区| 视频在线在亚洲| 91精品欧美综合在线观看最新| 亚洲成人自拍网| 91精品国产黑色紧身裤美女| 免费在线看一区| 精品国产一区二区精华| 国产曰批免费观看久久久| 国产欧美日韩三区| 99久久精品免费看| 亚洲日本成人在线观看| 欧美视频完全免费看| 五月婷婷综合网| 欧美成人精品3d动漫h| 国产激情视频一区二区三区欧美| 中文在线资源观看网站视频免费不卡| 成人免费看视频| 一区二区三区日韩在线观看| 欧美日韩中文一区| 男人的天堂久久精品| 久久精品一区二区三区av| a美女胸又www黄视频久久| 夜夜嗨av一区二区三区网页| 91精品免费在线| 国产91丝袜在线播放0| 亚洲精品免费在线| 日韩精品一区国产麻豆| 国产精品羞羞答答xxdd| 樱花草国产18久久久久| 精品久久久久久无| 91麻豆swag| 国产在线精品国自产拍免费| 亚洲桃色在线一区| 日韩欧美精品在线视频| 北岛玲一区二区三区四区| 亚洲高清视频在线| 欧美激情综合在线| 欧美二区三区91| 成人高清免费在线播放| 99麻豆久久久国产精品免费 | 欧美一二三四在线| 国产99精品视频| 午夜精品免费在线观看| 中文字幕欧美激情| 7777女厕盗摄久久久| gogogo免费视频观看亚洲一| 日韩一区精品视频| 亚洲女人****多毛耸耸8| 欧美成人一区二区三区| 欧美三级日韩三级国产三级| 成人在线视频一区二区| 久久精品国产一区二区三 | 日韩成人精品在线观看| 亚洲欧洲日韩av| 久久影院午夜论| 欧美日韩高清一区二区三区| va亚洲va日韩不卡在线观看| 精品一区精品二区高清| 天堂蜜桃91精品| 亚洲色欲色欲www在线观看| 2023国产精品| 精品久久久网站| 日韩视频免费观看高清完整版 | 欧美丝袜丝交足nylons| av在线综合网| 国产福利精品一区| 国产一区二区在线观看视频| 日本中文字幕一区二区视频| 亚洲精品写真福利| 国产精品国产三级国产普通话蜜臀 | 国产精品一级黄| 免费观看一级特黄欧美大片| 亚洲国产精品久久人人爱蜜臀| 国产精品久久精品日日| 中文字幕av在线一区二区三区| 2020国产精品| 久久久精品免费网站| 久久天堂av综合合色蜜桃网| 精品少妇一区二区三区视频免付费| 在线播放中文一区| 91精品国产综合久久香蕉的特点| 欧美三级三级三级| 欧美日韩精品免费| 在线播放日韩导航| 制服丝袜日韩国产| 欧美一级一级性生活免费录像| 欧美日韩免费视频| 欧美日韩一区二区在线观看 | 五月天一区二区| 奇米四色…亚洲| 美国三级日本三级久久99| 久久成人麻豆午夜电影| 精品制服美女丁香| 国产成人a级片| 北条麻妃国产九九精品视频| 91麻豆国产福利精品| 欧美三级乱人伦电影| 欧美一区二区在线看| 久久蜜桃av一区精品变态类天堂| 国产日韩视频一区二区三区| 日韩电影在线看| 国产毛片一区二区| av电影天堂一区二区在线观看| 色婷婷精品久久二区二区蜜臀av| 在线观看成人小视频| 3d动漫精品啪啪| 国产区在线观看成人精品| 国产精品久久久久四虎| 一区二区三区在线观看国产| 天天操天天综合网| 国产一区二区三区av电影| 99国产精品国产精品毛片| 欧美美女一区二区在线观看| 久久久久久久久久久99999| 亚洲人吸女人奶水| 日韩**一区毛片| 波多野结衣在线aⅴ中文字幕不卡| 91福利在线免费观看| 精品少妇一区二区三区| 亚洲欧美日韩国产综合| 秋霞成人午夜伦在线观看| 成人av在线看| 欧美tickling网站挠脚心| 亚洲欧美日韩电影| 蓝色福利精品导航| 日本韩国一区二区三区视频| 精品福利一区二区三区免费视频| ...av二区三区久久精品| 日本美女一区二区三区| 色综合久久综合| 国产日韩欧美精品一区| 午夜天堂影视香蕉久久| 99热国产精品| 久久久久久久久久久久久女国产乱| 亚洲精品日韩一| 福利电影一区二区三区| 日韩欧美一级精品久久| 一区二区久久久| 成人av资源网站| 久久综合色天天久久综合图片| 亚洲一区二区黄色| aaa欧美大片| 国产欧美一二三区| 精品伊人久久久久7777人| 久久综合九色欧美综合狠狠| 亚洲成a人在线观看| 99久久综合精品| 久久精品水蜜桃av综合天堂| 三级成人在线视频| 欧美喷水一区二区| 一区二区三区在线高清| av在线免费不卡| 欧美国产视频在线| 国产一区视频导航| 精品国精品国产尤物美女| 视频一区二区三区中文字幕| 在线免费观看成人短视频| 曰韩精品一区二区| 91麻豆高清视频| 一区二区三区在线观看国产| 99久久婷婷国产综合精品电影 | 亚洲欧美一区二区久久| 不卡欧美aaaaa| 日韩毛片视频在线看| 91网上在线视频| 洋洋成人永久网站入口|