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

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

?? portmacro.s90

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

#include <iom323.h>

; Declare all extern symbols here - including any ISRs that are referenced in
; the vector table.

; ISR functions
; -------------
EXTERN SIG_OUTPUT_COMPARE1A
EXTERN SIG_UART_RECV
EXTERN SIG_UART_DATA


; Functions used by scheduler
; ---------------------------
EXTERN vTaskSwitchContext
EXTERN pxCurrentTCB
EXTERN vTaskIncrementTick
EXTERN uxCriticalNesting

; Functions implemented in this file
; ----------------------------------
PUBLIC vPortYield
PUBLIC vPortYieldFromTick
PUBLIC vPortStart


; Interrupt vector table.
; -----------------------
;
; For simplicity the RTOS tick interrupt routine uses the __task keyword.
; As the IAR compiler does not permit a function to be declared using both
; __task and __interrupt, the use of __task necessitates that the interrupt
; vector table be setup manually.
;
; To write an ISR, implement the ISR function using the __interrupt keyword
; but do not install the interrupt using the "#pragma vector=ABC" method.
; Instead manually place the name of the ISR in the vector table using an
; ORG and jmp instruction as demonstrated below.
; You will also have to add an EXTERN statement at the top of the file.

	ASEG


	ORG TIMER1_COMPA_vect				; Vector address
		jmp SIG_OUTPUT_COMPARE1A		; ISR

	ORG USART_RXC_vect					; Vector address
		jmp SIG_UART_RECV				; ISR

	ORG USART_UDRE_vect					; Vector address
		jmp SIG_UART_DATA				; ISR

	
	RSEG CODE



; Saving and Restoring a Task Context and Task Switching
; ------------------------------------------------------
;
; The IAR compiler does not fully support inline assembler, so saving and
; restoring a task context has to be written in an asm file.
;
; vPortYield() and vPortYieldFromTick() are usually written in C.  Doing
; so in this case would required calls to be made to portSAVE_CONTEXT() and
; portRESTORE_CONTEXT().  This is dis-advantageous as the context switch
; function would require two extra jump and return instructions over the
; WinAVR equivalent.
;
; To avoid this I have opted to implement both vPortYield() and
; vPortYieldFromTick() in this assembly file.  For convenience
; portSAVE_CONTEXT and portRESTORE_CONTEXT are implemented as macros.

portSAVE_CONTEXT MACRO
	st	-y, r0			; First save the r0 register - we need to use this.
	in	r0, SREG		; Obtain the SREG value so we can disable interrupts...
	cli					; ... as soon as possible.
	st	-y, r0			; Store the SREG as it was before we disabled interrupts.

	in	r0, SPL			; Next store the hardware stack pointer.  The IAR...
	st	-y, r0			; ... compiler uses the hardware stack as a call stack ...
	in	r0, SPH			; ...  only.
	st	-y, r0

	st	-y, r1			; Now store the rest of the registers.  Dont store the ...
	st	-y, r2			; ... the Y register here as it is used as the software
	st	-y, r3			; stack pointer and will get saved into the TCB.
	st	-y, r4
	st	-y, r5
	st	-y, r6
	st	-y, r7
	st	-y, r8
	st	-y, r9
	st	-y, r10
	st	-y, r11
	st	-y, r12
	st	-y, r13
	st	-y, r14
	st	-y, r15
	st	-y, r16
	st	-y, r17
	st	-y, r18
	st	-y, r19
	st	-y, r20
	st	-y, r21
	st	-y, r22
	st	-y, r23
	st	-y, r24
	st	-y, r25
	st	-y, r26
	st	-y, r27
	st	-y, r30
	st	-y, r31
	lds r0, uxCriticalNesting
	st	-y, r0					; Store the critical nesting counter.

	lds	r26, pxCurrentTCB		; Finally save the software stack pointer (Y ...
	lds	r27, pxCurrentTCB + 1	; ... register) into the TCB.
	st	x+, r28
	st	x+, r29

	ENDM


portRESTORE_CONTEXT MACRO
	lds	r26, pxCurrentTCB
	lds	r27, pxCurrentTCB + 1	; Restore the software stack pointer from ...
	ld	r28, x+					; the TCB into the software stack pointer (...
	ld	r29, x+					; ... the Y register).

	ld	r0, y+
	sts	uxCriticalNesting, r0
	ld	r31, y+					; Restore the registers down to R0.  The Y
	ld	r30, y+					; register is missing from this list as it
	ld	r27, y+					; has already been restored.
	ld	r26, y+
	ld	r25, y+
	ld	r24, y+
	ld	r23, y+
	ld	r22, y+
	ld	r21, y+
	ld	r20, y+
	ld	r19, y+
	ld	r18, y+
	ld	r17, y+
	ld	r16, y+
	ld	r15, y+
	ld	r14, y+
	ld	r13, y+
	ld	r12, y+
	ld	r11, y+
	ld	r10, y+
	ld	r9, y+
	ld	r8, y+
	ld	r7, y+
	ld	r6, y+
	ld	r5, y+
	ld	r4, y+
	ld	r3, y+
	ld	r2, y+
	ld	r1, y+

	ld	r0, y+					; The next thing on the stack is the ...
	out	SPH, r0					; ... hardware stack pointer.
	ld	r0, y+
	out	SPL, r0

	ld	r0, y+					; Next there is the SREG register.
	out SREG, r0

	ld	r0, y+					; Finally we have finished with r0, so restore r0.
	
	ENDM



; vPortYield() and vPortYieldFromTick()
; -------------------------------------
;
; Manual and preemptive context switch functions respectively.
; The IAR compiler does not fully support inline assembler,
; so these are implemented here rather than the more usually
; place of within port.c.

vPortYield:
	portSAVE_CONTEXT			; Save the context of the current task.
	call vTaskSwitchContext		; Call the scheduler.
	portRESTORE_CONTEXT			; Restore the context of whichever task the ...
	ret							; ... scheduler decided should run.

vPortYieldFromTick:
	portSAVE_CONTEXT			; Save the context of the current task.
	call vTaskIncrementTick		; Call the timer tick function.
	call vTaskSwitchContext		; Call the scheduler.
	portRESTORE_CONTEXT			; Restore the context of whichever task the ...
	ret							; ... scheduler decided should run.

; vPortStart()
; ------------
;
; Again due to the lack of inline assembler, this is required
; to get access to the portRESTORE_CONTEXT macro.

vPortStart:
	portRESTORE_CONTEXT
	ret


; Just a filler for unused interrupt vectors.
vNoISR:
	reti


	END

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品综合久久久久久| 一区二区免费在线播放| 精品中文字幕一区二区| 亚洲精品第1页| 欧美国产精品中文字幕| 日韩欧美成人午夜| 欧美日韩一区二区在线观看 | 日韩vs国产vs欧美| 亚洲激情图片小说视频| 中文字幕一区二区三区在线不卡| 欧美一区二区三区日韩视频| 欧美亚洲动漫精品| 在线免费不卡电影| 国产精品欧美久久久久一区二区| 日韩欧美精品在线视频| 欧美va在线播放| 久久久99免费| 在线成人小视频| 久久你懂得1024| 欧美视频三区在线播放| 成人午夜电影网站| 欧美日韩一区二区三区四区五区| 精品日本一线二线三线不卡| 久久嫩草精品久久久精品一| 久久久噜噜噜久久中文字幕色伊伊| 欧美高清一级片在线| 欧美大肚乱孕交hd孕妇| 久久综合九色综合97婷婷| 亚洲a一区二区| 亚洲一区在线观看免费| 午夜精品福利久久久| 中文字幕一区在线观看视频| 国产三区在线成人av| 亚洲综合激情网| 蜜臀久久99精品久久久久宅男 | 欧美精品一区视频| 国产原创一区二区三区| 国产精品18久久久久久久久| 高清av一区二区| 91高清视频免费看| 91精品国产高清一区二区三区| 日韩精品一区二| 国产日韩欧美不卡在线| 中文字幕中文字幕在线一区| 亚洲激情图片一区| 亚洲成a天堂v人片| 日韩av电影免费观看高清完整版| 国产成人精品免费| 欧美亚洲一区二区在线观看| 日韩欧美国产一区二区在线播放| 欧美在线一二三四区| 精品人伦一区二区色婷婷| 国产精品乱码一区二区三区软件| 婷婷中文字幕一区三区| kk眼镜猥琐国模调教系列一区二区| 51精品国自产在线| 夜夜精品视频一区二区| www.亚洲色图| 国产精品日日摸夜夜摸av| 国产一区二区三区在线观看免费视频| 欧美美女视频在线观看| 亚洲精品视频在线观看免费| 国产久卡久卡久卡久卡视频精品| 在线区一区二视频| 亚洲欧美激情在线| 99久久精品国产麻豆演员表| 国产女主播在线一区二区| 久草中文综合在线| 欧美一级精品在线| 三级在线观看一区二区| 欧美卡1卡2卡| 午夜激情久久久| 欧美天堂一区二区三区| 一片黄亚洲嫩模| 91国偷自产一区二区三区观看 | 久久久久久日产精品| 精品一区二区在线播放| 日韩午夜精品视频| 久久av老司机精品网站导航| 欧美成人vr18sexvr| 久久精品国产久精国产| 欧美一卡二卡三卡| 久久er99热精品一区二区| 欧美刺激午夜性久久久久久久| 日韩国产精品久久| 精品久久久久久久久久久久久久久 | 欧美日韩欧美一区二区| 性做久久久久久久免费看| 欧美日韩三级视频| 奇米777欧美一区二区| 欧美一区二区三区在线观看| 蜜臀91精品一区二区三区| 日韩三区在线观看| 国产一区中文字幕| 国产精品久久久久国产精品日日| 白白色 亚洲乱淫| 亚洲美女电影在线| 欧美日韩国产综合一区二区| 奇米影视一区二区三区小说| 久久先锋影音av鲁色资源| 99r国产精品| 日本成人在线看| 国产精品欧美综合在线| 欧美色图激情小说| 国产在线精品免费| 玉足女爽爽91| 精品99999| 色综合一个色综合| 美女国产一区二区| 最新国产精品久久精品| 51精品久久久久久久蜜臀| 国产成人在线免费观看| 亚洲国产中文字幕| xvideos.蜜桃一区二区| 欧洲精品一区二区三区在线观看| 蜜桃精品视频在线| 欧美国产精品专区| 欧美特级限制片免费在线观看| 美国一区二区三区在线播放| 国产精品久久久久影院色老大 | 国产美女精品人人做人人爽| 亚洲女爱视频在线| 欧美va亚洲va香蕉在线| 色婷婷久久久综合中文字幕| 国产一区二区三区久久久 | 男女视频一区二区| 成人免费一区二区三区视频| 欧美成人aa大片| 欧美日韩中文另类| 91色.com| 99视频精品在线| 国产一区二区三区观看| 天堂蜜桃91精品| 亚洲日本在线视频观看| 精品国产人成亚洲区| 欧美美女喷水视频| 色偷偷久久一区二区三区| 国产精品亚洲专一区二区三区| 日韩二区三区四区| 亚洲国产三级在线| 亚洲欧洲av一区二区三区久久| 26uuu国产电影一区二区| 5566中文字幕一区二区电影| 欧美日韩一二三| 欧美日韩一区二区电影| 欧美日韩三级在线| 欧美精品视频www在线观看| 欧美日韩一区二区三区在线看| 在线观看一区不卡| 色综合色综合色综合色综合色综合 | 欧美变态口味重另类| 欧美一区日韩一区| 日韩视频免费观看高清完整版| 欧美男女性生活在线直播观看| 欧美少妇bbb| 91黄视频在线观看| 欧美日韩精品福利| 欧美精品第1页| 欧美videossexotv100| 精品成人免费观看| 久久久久久久久久久久久久久99| 26uuu精品一区二区三区四区在线| 久久婷婷国产综合精品青草| 日本一区二区三区久久久久久久久不 | 欧美另类久久久品| 3751色影院一区二区三区| 日韩欧美激情一区| 日本一区二区三级电影在线观看| 国产精品久久福利| 亚洲精品成人精品456| 天天免费综合色| 美腿丝袜亚洲一区| 国产成人亚洲综合a∨婷婷| www.性欧美| 在线成人午夜影院| 久久久久久久久久美女| 成人欧美一区二区三区小说 | 精品欧美一区二区久久| 日本一区二区免费在线观看视频| 亚洲视频一区二区在线| 日韩制服丝袜av| 粉嫩嫩av羞羞动漫久久久| 在线影院国内精品| 日韩一区二区三区在线| 中文字幕字幕中文在线中不卡视频| 亚洲综合清纯丝袜自拍| 久草精品在线观看| 99久久婷婷国产| 欧美一区二区三区小说| 国产女人aaa级久久久级| 亚洲一区二区三区小说| 国产精品99久| 欧美日韩一区二区三区四区 | 色天天综合久久久久综合片| 欧美一区二区三区在| 国产精品的网站| 免费日韩伦理电影| 99国产精品99久久久久久| 日韩欧美123| 一区二区在线电影|