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

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

?? portmacro.h

?? 最新版FreeRTOS, 包擴多種開發平臺的移植
?? H
字號:
/*
	FreeRTOS.org V4.1.1 - Copyright (C) 2003 - 2005 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.
	***************************************************************************
*/


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

/* Hardware specifics. */
#define portBYTE_ALIGNMENT			1
#define portSTACK_GROWTH			( -1 )
#define portTICK_RATE_MS			( ( portTickType ) 1000 / configTICK_RATE_HZ )
#define portYIELD()					__asm( "swi" );
/*-----------------------------------------------------------*/

/* Critical section handling. */
#define portENABLE_INTERRUPTS()				__asm( "cli" )	
#define portDISABLE_INTERRUPTS()			__asm( "sei" )

/*
 * Disable interrupts before incrementing the count of critical section nesting.
 * The nesting count is maintained so we know when interrupts should be
 * re-enabled.  Once interrupts are disabled the nesting count can be accessed
 * directly.  Each task maintains its own nesting count.
 */
#define portENTER_CRITICAL()  									\
{																\
	extern volatile unsigned portBASE_TYPE uxCriticalNesting;	\
																\
	portDISABLE_INTERRUPTS();									\
	uxCriticalNesting++;										\
}

/*
 * Interrupts are disabled so we can access the nesting count directly.  If the
 * nesting is found to be 0 (no nesting) then we are leaving the critical 
 * section and interrupts can be re-enabled.
 */
#define  portEXIT_CRITICAL()									\
{																\
	extern volatile unsigned portBASE_TYPE uxCriticalNesting;	\
																\
	uxCriticalNesting--;										\
	if( uxCriticalNesting == 0 )								\
	{															\
		portENABLE_INTERRUPTS();								\
	}															\
}
/*-----------------------------------------------------------*/

/* Task utilities. */

/* 
 * These macros are very simple as the processor automatically saves and 
 * restores its registers as interrupts are entered and exited.  In
 * addition to the (automatically stacked) registers we also stack the 
 * critical nesting count.  Each task maintains its own critical nesting
 * count as it is legitimate for a task to yield from within a critical
 * section.  If the banked memory model is being used then the PPAGE
 * register is also stored as part of the tasks context.
 */

#ifdef BANKED_MODEL
	/* 
	 * Load the stack pointer for the task, then pull the critical nesting
	 * count and PPAGE register from the stack.  The remains of the 
	 * context are restored by the RTI instruction.
	 */
	#define portRESTORE_CONTEXT()							\
	{										\
		__asm( "								\n\
		.globl pxCurrentTCB			; void *			\n\
		.globl uxCriticalNesting		; char				\n\
											\n\
		ldx  pxCurrentTCB							\n\
		lds  0,x				; Stack				\n\
											\n\
		movb 1,sp+,uxCriticalNesting						\n\
		movb 1,sp+,0x30				; PPAGE				\n\
		" );									\
	}

	/* 
	 * By the time this macro is called the processor has already stacked the
	 * registers.  Simply stack the nesting count and PPAGE value, then save 
	 * the task stack pointer.
	 */
	#define portSAVE_CONTEXT()							\
	{										\
		__asm( "								\n\
		.globl pxCurrentTCB			; void *			\n\
		.globl uxCriticalNesting		; char				\n\
											\n\
		movb 0x30, 1,-sp			; PPAGE				\n\
		movb uxCriticalNesting, 1,-sp						\n\
											\n\
		ldx  pxCurrentTCB							\n\
		sts  0,x				; Stack				\n\
		" );									\
	}
#else

	/* 
	 * These macros are as per the BANKED versions above, but without saving
	 * and restoring the PPAGE register.
	 */

	#define portRESTORE_CONTEXT()							\
	{										\
		__asm( "								\n\
		.globl pxCurrentTCB			; void *			\n\
		.globl uxCriticalNesting		; char				\n\
											\n\
		ldx  pxCurrentTCB							\n\
		lds  0,x				; Stack				\n\
											\n\
		movb 1,sp+,uxCriticalNesting						\n\
		" );									\
	}

	#define portSAVE_CONTEXT()							\
	{										\
		__asm( "								\n\
		.globl pxCurrentTCB			; void *			\n\
		.globl uxCriticalNesting		; char				\n\
											\n\
		movb uxCriticalNesting, 1,-sp						\n\
											\n\
		ldx  pxCurrentTCB							\n\
		sts  0,x				; Stack				\n\
		" );									\
	}
#endif

/*
 * Utility macros to save/restore correct software registers for GCC. This is
 * useful when GCC does not generate appropriate ISR head/tail code.
 */
#define portISR_HEAD()									\
{											\
		__asm("									\n\
		movw _.frame, 2,-sp							\n\
		movw _.tmp, 2,-sp							\n\
		movw _.z, 2,-sp								\n\
		movw _.xy, 2,-sp							\n\
		;movw _.d2, 2,-sp							\n\
		;movw _.d1, 2,-sp							\n\
		");									\
}

#define portISR_TAIL()									\
{											\
		__asm("									\n\
		movw 2,sp+, _.xy							\n\
		movw 2,sp+, _.z								\n\
		movw 2,sp+, _.tmp							\n\
		movw 2,sp+, _.frame							\n\
		;movw 2,sp+, _.d1							\n\
		;movw 2,sp+, _.d2							\n\
		rti									\n\
		");									\
}

/*
 * Utility macro to call macros above in correct order in order to perform a
 * task switch from within a standard ISR.  This macro can only be used if
 * the ISR does not use any local (stack) variables.  If the ISR uses stack
 * variables portYIELD() should be used in it's place.
 */

#define portTASK_SWITCH_FROM_ISR()								\
	portSAVE_CONTEXT();											\
	vTaskSwitchContext();										\
	portRESTORE_CONTEXT();


/* 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一区二区三区免费野_久草精品视频
久久精品视频一区二区三区| 国产精品日日摸夜夜摸av| 99久久精品国产观看| 成人少妇影院yyyy| 99精品国产91久久久久久| 99久久精品国产一区| 日本韩国一区二区三区视频| 色综合天天综合狠狠| 欧美日韩另类国产亚洲欧美一级| 欧美综合亚洲图片综合区| 91极品视觉盛宴| 91精品婷婷国产综合久久| 日韩午夜三级在线| 国产亚洲欧美在线| 亚洲久草在线视频| 免费日本视频一区| 国产精品资源在线观看| www.成人在线| 欧美三区在线观看| 欧美va在线播放| 国产精品久久综合| 亚洲成人激情社区| 国产一区二区三区黄视频 | 日本女优在线视频一区二区| 免费的成人av| 91在线免费播放| 欧美一二三四在线| 亚洲欧美在线观看| 日韩激情一二三区| 成人免费的视频| 欧美年轻男男videosbes| 久久久久久久久久久久久久久99| 亚洲色图制服诱惑| 免费精品视频在线| 在线亚洲+欧美+日本专区| 精品久久一二三区| 一区二区三区欧美| 国产剧情一区二区三区| 91成人网在线| 久久久777精品电影网影网| 亚洲丰满少妇videoshd| 国产成人在线免费观看| 欧美综合色免费| 国产亚洲欧美日韩俺去了| 夜色激情一区二区| www.成人在线| 久久丝袜美腿综合| 视频在线观看91| 91高清视频免费看| 国产精品嫩草久久久久| 午夜免费久久看| 色婷婷av一区二区三区大白胸 | 色八戒一区二区三区| 久久一留热品黄| 五月婷婷久久丁香| 91美女福利视频| 国产精品精品国产色婷婷| 免费人成黄页网站在线一区二区| 91久久一区二区| 国产精品美女久久久久久久久 | 欧美午夜精品久久久| 久久精品视频一区二区| 久久99精品国产麻豆婷婷| 欧美片网站yy| 天天色天天爱天天射综合| 欧日韩精品视频| 一个色在线综合| 欧美曰成人黄网| 亚洲最新视频在线观看| 色婷婷综合久久| 亚洲精品乱码久久久久久黑人| 波多野结衣中文字幕一区二区三区| www激情久久| 国产黑丝在线一区二区三区| 欧美精品一区二区三区四区| 精品亚洲欧美一区| 久久久久久免费毛片精品| 国产一区二区h| 中文字幕欧美日韩一区| av一区二区三区黑人| 综合分类小说区另类春色亚洲小说欧美| 成人午夜看片网址| 亚洲精品视频免费观看| 欧美亚洲国产怡红院影院| 丝袜国产日韩另类美女| 69av一区二区三区| 激情综合网av| 国产精品免费久久| 色狠狠一区二区三区香蕉| 丝袜亚洲另类欧美综合| 欧美成人一区二区三区| 国产精品自拍毛片| 亚洲精品国产精品乱码不99| 精品视频123区在线观看| 日本va欧美va欧美va精品| 欧美成人伊人久久综合网| 成人丝袜视频网| 一区二区激情视频| 日韩欧美专区在线| 国产精品一区二区果冻传媒| 国产精品免费aⅴ片在线观看| 色琪琪一区二区三区亚洲区| 美国十次了思思久久精品导航| www久久久久| 欧美网站大全在线观看| 国产一区二区三区av电影| 中文字幕一区二区三区四区不卡| 欧美日韩中字一区| 成人午夜视频免费看| 午夜电影一区二区| 欧美韩日一区二区三区四区| 在线观看亚洲a| 国产成人在线视频网址| 污片在线观看一区二区| 国产精品夫妻自拍| 日韩精品自拍偷拍| 欧洲一区二区av| 国产91丝袜在线播放| 日日骚欧美日韩| 亚洲欧美视频在线观看视频| 精品国产乱码久久久久久久 | 国产精品99久| 日韩精品一二三| 亚洲精品菠萝久久久久久久| 国产亚洲精品免费| 欧美夫妻性生活| 在线观看成人免费视频| 成人免费观看视频| 国产一区二区导航在线播放| 亚洲成人先锋电影| 亚洲老司机在线| 欧美激情一区二区三区四区| 精品免费国产一区二区三区四区| 色94色欧美sute亚洲线路一ni| 国产精品一区二区三区乱码| 午夜久久久久久| 亚洲国产一二三| 亚洲视频网在线直播| 日本一区二区三区在线不卡| 精品国产三级电影在线观看| 91精品国产全国免费观看| 欧美午夜不卡在线观看免费| 日本精品一区二区三区四区的功能| 国产精品自拍av| 国产成人精品一区二区三区四区| 美女尤物国产一区| 麻豆精品国产91久久久久久| 日本中文在线一区| 日韩在线a电影| 另类小说欧美激情| 久久99精品久久只有精品| 精品一区二区在线观看| 韩国女主播成人在线观看| 国产一区二区视频在线| 国产一区二区在线电影| 国产精品香蕉一区二区三区| 国产精品自产自拍| 国产99久久久国产精品免费看| 国产suv精品一区二区三区| 国产一区二区伦理片| 国产精品99久| 91女神在线视频| 欧美日韩色综合| 日韩欧美一级在线播放| 久久品道一品道久久精品| 国产无人区一区二区三区| 国产精品入口麻豆九色| 一级女性全黄久久生活片免费| 亚洲一区二区精品视频| 丝袜亚洲另类欧美| 国产精品中文欧美| 91最新地址在线播放| 91九色最新地址| 欧美成人女星排名| 国产精品福利电影一区二区三区四区| 亚洲男人的天堂av| 五月婷婷欧美视频| 国产福利一区二区三区在线视频| 成人性生交大片免费看视频在线| 色妹子一区二区| 欧美成人三级在线| 亚洲欧美在线视频观看| 午夜精品福利视频网站| 国产福利视频一区二区三区| 色综合中文字幕| 亚洲精品一线二线三线无人区| 亚洲欧洲日韩在线| 久久国产欧美日韩精品| av男人天堂一区| 91精品国产综合久久久久久久| 国产午夜精品一区二区三区嫩草 | 91伊人久久大香线蕉| 欧美午夜视频网站| 国产日产精品1区| 婷婷开心久久网| 91欧美一区二区| 久久久久久久久久久久久久久99 | 精品对白一区国产伦| 一区二区三区在线视频免费| 国产在线精品免费|