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

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

?? portmacro.h

?? MCS-51的一個Free小型操作系統,在KeilC中下編譯工作
?? H
字號:
/*
	FreeRTOS.org V4.1.3 - 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.
	***************************************************************************
*/


#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" );
#define portNOP()					__asm( "nop" );
/*-----------------------------------------------------------*/

/* 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()									\
	{																\
		extern volatile void * pxCurrentTCB;						\
		extern volatile unsigned portBASE_TYPE uxCriticalNesting;	\
																	\
		__asm( "ldx pxCurrentTCB" );								\
		__asm( "lds 0, x" );										\
		__asm( "pula" );											\
		__asm( "staa uxCriticalNesting" );							\
		__asm( "pula" );											\
		__asm( "staa 0x30" ); /* 0x30 = PPAGE */					\
	}

	/* 
	 * 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()										\
	{																\
		extern volatile void * pxCurrentTCB;						\
		extern volatile unsigned portBASE_TYPE uxCriticalNesting;	\
																	\
		__asm( "ldaa 0x30" );  /* 0x30 = PPAGE */					\
		__asm( "psha" );											\
		__asm( "ldaa uxCriticalNesting" );							\
		__asm( "psha" );											\
		__asm( "ldx pxCurrentTCB" );								\
		__asm( "sts 0, x" );										\
	}
#else

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

	#define portRESTORE_CONTEXT()									\
	{																\
		extern volatile void * pxCurrentTCB;						\
		extern volatile unsigned portBASE_TYPE uxCriticalNesting;	\
																	\
		__asm( "ldx pxCurrentTCB" );								\
		__asm( "lds 0, x" );										\
		__asm( "pula" );											\
		__asm( "staa uxCriticalNesting" );							\
	}

	#define portSAVE_CONTEXT()										\
	{																\
		extern volatile void * pxCurrentTCB;						\
		extern volatile unsigned portBASE_TYPE uxCriticalNesting;	\
																	\
		__asm( "ldaa uxCriticalNesting" );							\
		__asm( "psha" );											\
		__asm( "ldx pxCurrentTCB" );								\
		__asm( "sts 0, x" );										\
	}
#endif

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

#define inline

#endif /* PORTMACRO_H */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品色眯眯| 国产精品丝袜一区| 欧美日韩成人在线一区| 激情伊人五月天久久综合| 国产亚洲va综合人人澡精品 | 欧美一级免费观看| 精品免费99久久| 久久精品人人做人人爽人人| 成人欧美一区二区三区1314| 中文字幕色av一区二区三区| 一区二区三区四区精品在线视频| 亚洲一区在线观看免费观看电影高清| 午夜精品久久久久久久蜜桃app| 日韩电影免费一区| 成人手机在线视频| 在线成人小视频| 亚洲国产精品v| 秋霞成人午夜伦在线观看| 成人一级视频在线观看| 欧美综合亚洲图片综合区| 欧美精品一区二区不卡| 伊人色综合久久天天| 国产91精品免费| 欧美一区二区三区性视频| 亚洲少妇30p| 成人白浆超碰人人人人| wwww国产精品欧美| 日韩中文字幕麻豆| 欧美色精品在线视频| 国产精品女主播av| 粉嫩一区二区三区性色av| 精品国精品国产尤物美女| 日韩国产精品久久久| 欧美伊人精品成人久久综合97| 欧美国产精品v| 精品午夜久久福利影院| 日韩亚洲欧美高清| 久久国产综合精品| 久久亚洲春色中文字幕久久久| 日韩影院免费视频| 日韩三级视频中文字幕| 美女网站视频久久| 国产人成一区二区三区影院| 国产精品综合一区二区| 国产精品传媒入口麻豆| 色婷婷综合久久久久中文 | 欧美二区三区的天堂| 亚洲精品一二三四区| 欧美丰满一区二区免费视频| 亚洲1区2区3区视频| 欧美色图片你懂的| 激情综合一区二区三区| 国产日韩欧美综合在线| 91久久一区二区| 美女久久久精品| 亚洲人成网站在线| 日韩欧美一二区| 91蝌蚪porny九色| 免费欧美日韩国产三级电影| 久久久久97国产精华液好用吗| 成人av网站免费| 奇米影视7777精品一区二区| 国产精品女主播在线观看| 欧美一级黄色录像| 欧洲生活片亚洲生活在线观看| 亚洲精品欧美二区三区中文字幕| 欧美一级二级三级乱码| 欧美一级理论片| 91久久香蕉国产日韩欧美9色| 一区二区在线观看免费视频播放 | 精品福利二区三区| 亚洲国产精品一区二区久久| 91在线视频观看| 亚洲国产sm捆绑调教视频 | 欧美国产亚洲另类动漫| 青青青伊人色综合久久| 欧美精品久久天天躁| 日韩三级免费观看| 97超碰欧美中文字幕| 国产偷v国产偷v亚洲高清| 56国语精品自产拍在线观看| 亚洲一线二线三线久久久| 国产视频一区在线观看| 欧美精选一区二区| 国产成人免费视频网站| 国产精品99精品久久免费| 亚洲激情自拍视频| 国产偷v国产偷v亚洲高清| 91麻豆蜜桃一区二区三区| 粉嫩嫩av羞羞动漫久久久| 成人综合日日夜夜| 国产一区二区美女| 91色在线porny| 成人午夜私人影院| 成人免费看的视频| 色综合欧美在线视频区| 久久久久久久av麻豆果冻| 欧美电影免费提供在线观看| 2欧美一区二区三区在线观看视频| 精品国产在天天线2019| 日韩视频不卡中文| 国产精品久久久久久久浪潮网站| 玉米视频成人免费看| 一区二区三区美女| 日本不卡一区二区三区| 成人黄色av电影| 精品国产免费人成电影在线观看四季| 国产亚洲综合av| 亚洲一区二区三区四区在线观看 | 精品一区二区三区日韩| 欧美色老头old∨ideo| 午夜精品123| 亚洲一区视频在线| 欧美国产日本韩| 一区2区3区在线看| 国产福利91精品| 精品国产亚洲在线| 婷婷久久综合九色国产成人| av一区二区三区| 久久夜色精品一区| 精品一区二区三区视频| 欧美亚洲免费在线一区| 亚洲欧洲成人自拍| 国产激情精品久久久第一区二区| 日韩视频不卡中文| 免费欧美日韩国产三级电影| 欧美精品自拍偷拍| 人人超碰91尤物精品国产| 欧美日韩成人一区| 蜜桃视频在线一区| 日韩欧美一区在线| 国产制服丝袜一区| 久久久噜噜噜久久人人看| 高清在线观看日韩| 欧美激情一区二区三区全黄| 99久久er热在这里只有精品66| 中文字幕一区二区三区乱码在线 | 国产精品久久久久永久免费观看| 国内一区二区在线| 国产精品高潮呻吟| 在线精品视频免费播放| 五月婷婷综合激情| 国产亚洲精品7777| 91国在线观看| 狠狠狠色丁香婷婷综合激情| 亚洲精品一区二区三区影院 | 亚洲精品欧美激情| 欧美一区二区三区喷汁尤物| 国产精品伊人色| 一级中文字幕一区二区| 亚洲精品在线一区二区| 成人av在线网| 美女一区二区视频| 一区二区三区久久久| 国产色一区二区| 日韩一级视频免费观看在线| www.日韩大片| 国产精品一级二级三级| 亚洲成a人v欧美综合天堂| 国产欧美一区二区三区在线看蜜臀| 91行情网站电视在线观看高清版| 国产麻豆视频一区二区| 无吗不卡中文字幕| 一区二区三区在线视频观看58| 欧美v国产在线一区二区三区| 在线观看国产日韩| 欧美性猛交xxxxxxxx| 99热精品国产| 91蝌蚪porny九色| 色94色欧美sute亚洲线路二| 成人久久久精品乱码一区二区三区| 久久丁香综合五月国产三级网站| 亚洲愉拍自拍另类高清精品| 一区二区中文视频| 国产精品久久福利| 国产精品免费丝袜| 亚洲欧美一区二区三区极速播放| 亚洲国产高清不卡| 最新国产の精品合集bt伙计| 亚洲色图制服诱惑| 午夜精品一区在线观看| 视频在线在亚洲| 国产精品免费aⅴ片在线观看| 国产精品黄色在线观看| 亚洲视频一区在线| 亚洲综合999| 国产一区日韩二区欧美三区| 韩国精品久久久| 91福利资源站| 26uuu国产电影一区二区| 中文av一区二区| 日韩av在线发布| 国产91精品免费| 欧美一区午夜精品| 中文字幕乱码一区二区免费| 亚洲线精品一区二区三区八戒| 开心九九激情九九欧美日韩精美视频电影 | 国产九色精品成人porny| 欧美日韩国产美| 国产精品久久久久久久午夜片|