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

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

?? portmacro.h

?? MCS-51的一個Free小型操作系統,在KeilC中下編譯工作
?? H
字號:
/*
	FreeRTOS.org V4.1.3 - 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一区二区三区免费野_久草精品视频
日韩欧美国产电影| 欧美精品一区二区三区蜜臀| 日韩成人一级片| 久久久久久97三级| 欧洲av在线精品| 丝袜美腿亚洲色图| 国产精品久久久久婷婷| 在线不卡a资源高清| 国产成人久久精品77777最新版本| 国产精品色在线观看| 欧美高清激情brazzers| 国产suv精品一区二区三区| 亚洲国产欧美一区二区三区丁香婷| 精品国产制服丝袜高跟| 色婷婷一区二区三区四区| 久久国产精品免费| 一区二区三区免费在线观看| 日韩一区二区麻豆国产| 在线影院国内精品| 大白屁股一区二区视频| 青青草一区二区三区| 亚洲已满18点击进入久久| 国产人伦精品一区二区| 91精品国产91久久综合桃花| 色哟哟精品一区| 成人短视频下载 | 中文字幕佐山爱一区二区免费| 欧美主播一区二区三区| 成人一区二区视频| 久久精品国内一区二区三区| 亚洲香肠在线观看| 国产精品成人一区二区三区夜夜夜| 日韩限制级电影在线观看| 91麻豆swag| av亚洲精华国产精华精| 91精品国产综合久久福利软件| 久久精品国产99国产| 亚洲婷婷在线视频| 日本一区二区免费在线观看视频| 日韩一级大片在线观看| 欧美日韩国产一区二区三区地区| 91色.com| av成人老司机| 99麻豆久久久国产精品免费| 国产高清一区日本| 国产精品亚洲一区二区三区在线| 日本不卡的三区四区五区| 亚洲无线码一区二区三区| 亚洲免费视频中文字幕| 亚洲欧洲国产日本综合| 国产日本欧美一区二区| 26uuu色噜噜精品一区二区| 欧美成人一区二区| 日韩久久久久久| 日韩欧美一区在线观看| 欧美一区二区三区视频免费播放| 欧美三级日韩三级| 欧美日韩小视频| 欧美一级一级性生活免费录像| 欧美一区二区三区视频在线观看| 色狠狠一区二区三区香蕉| 99久久国产综合色|国产精品| 99视频热这里只有精品免费| caoporn国产一区二区| 91免费版在线看| 91久久精品网| 欧美精品日韩精品| 欧美一级精品大片| 国产调教视频一区| 中文字幕第一区第二区| 亚洲日本护士毛茸茸| 最新国产成人在线观看| 中文字幕av一区 二区| 亚洲欧洲在线观看av| 洋洋成人永久网站入口| 免费在线视频一区| 国产精品资源在线看| 成人黄色网址在线观看| 色呦呦网站一区| 精品99一区二区| 欧美成人国产一区二区| www国产亚洲精品久久麻豆| 中文字幕av不卡| 一区av在线播放| 蜜臀精品一区二区三区在线观看| 久久精品噜噜噜成人88aⅴ| 国产一区日韩二区欧美三区| 国产999精品久久久久久绿帽| 91麻豆自制传媒国产之光| 欧美精品粉嫩高潮一区二区| 久久亚洲综合色| 一区二区三区欧美日| 精品亚洲欧美一区| 91视频国产观看| 日韩欧美专区在线| 国产欧美日韩视频在线观看| 国产精品拍天天在线| 亚洲国产一区在线观看| 国产高清精品网站| 欧美日韩国产首页在线观看| 亚洲国产精品av| 无码av中文一区二区三区桃花岛| 国产成人在线视频网址| zzijzzij亚洲日本少妇熟睡| 欧美一级欧美一级在线播放| 欧美高清在线一区二区| 亚洲国产精品视频| 黄色精品一二区| 在线欧美日韩精品| 久久婷婷色综合| 亚洲国产日韩一级| 成人免费观看av| 欧美一区二区性放荡片| 亚洲欧美另类图片小说| 激情综合色播激情啊| 欧美日韩亚洲另类| 日本一区中文字幕 | 亚洲激情图片一区| 国产一区在线不卡| 色综合天天在线| 日韩区在线观看| 亚洲黄色免费电影| 成人永久看片免费视频天堂| 69久久99精品久久久久婷婷| 成人欧美一区二区三区黑人麻豆 | 成人免费看黄yyy456| 日韩视频永久免费| 18涩涩午夜精品.www| 石原莉奈一区二区三区在线观看 | 蜜桃av一区二区三区电影| 在线视频一区二区免费| 中文字幕欧美三区| 国产精品自拍av| 精品国产一区二区亚洲人成毛片| 亚洲不卡av一区二区三区| 91蝌蚪porny| 国产偷v国产偷v亚洲高清| 久久99久久99小草精品免视看| 欧美美女激情18p| 亚洲国产精品久久一线不卡| 北条麻妃一区二区三区| 国产欧美日韩中文久久| 国产高清成人在线| 国产日产欧美一区二区视频| 男人的天堂久久精品| 日本丶国产丶欧美色综合| 中文字幕一区二区不卡| 成人精品在线视频观看| 国产日韩欧美综合一区| 国产自产v一区二区三区c| 久久久99免费| 97久久久精品综合88久久| 亚洲精品中文在线影院| 91精品欧美综合在线观看最新| 久久国内精品自在自线400部| 久久久国际精品| 色噜噜狠狠色综合中国| 三级影片在线观看欧美日韩一区二区| 制服.丝袜.亚洲.中文.综合| 国产麻豆欧美日韩一区| 中文字幕视频一区| 欧美裸体一区二区三区| 国产一区二区电影| 亚洲欧美日韩国产另类专区| 777精品伊人久久久久大香线蕉| 激情五月婷婷综合| aaa亚洲精品一二三区| 91精品欧美福利在线观看| 韩国欧美国产1区| ...中文天堂在线一区| 欧美日韩国产综合久久| 韩国欧美国产1区| 一区二区三区四区乱视频| 91精品国产入口| 成人免费电影视频| 日日摸夜夜添夜夜添国产精品| 久久免费电影网| 欧美日韩久久久| 国产传媒久久文化传媒| 午夜精品影院在线观看| 亚洲国产精品成人综合| 91精品麻豆日日躁夜夜躁| 成人午夜激情在线| 日本成人超碰在线观看| 国产精品电影一区二区三区| 日韩欧美国产小视频| av电影一区二区| 狠狠色综合色综合网络| 亚洲成人自拍一区| 国产精品成人免费| 欧美大片免费久久精品三p| 色综合网站在线| 国产精品一区一区三区| 视频一区视频二区在线观看| 亚洲视频一二区| 日本一区二区三区在线观看| 欧美一级片在线观看| 精品视频色一区| 99re热视频精品| 福利电影一区二区三区|