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

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

?? portmacro.s90

?? FreeRTOSV3.2.0 經典嵌入式操作系統
?? S90
字號:
;	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.
;	***************************************************************************

#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

; 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	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	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一区二区三区免费野_久草精品视频
亚洲自拍偷拍av| 色婷婷一区二区三区四区| 国产精品水嫩水嫩| 精品国产自在久精品国产| 日韩视频一区二区在线观看| 欧美精品自拍偷拍动漫精品| 欧美日韩在线一区二区| 91精品婷婷国产综合久久| 欧美一区二区在线播放| 精品日产卡一卡二卡麻豆| 久久日一线二线三线suv| 日韩欧美一二三四区| 日韩视频免费直播| 夜夜嗨av一区二区三区网页| 视频一区二区三区中文字幕| 日本欧美韩国一区三区| 国产乱国产乱300精品| 不卡电影免费在线播放一区| 91精品福利视频| 日韩欧美的一区| 午夜激情一区二区| 国产一区二区免费在线| av中文一区二区三区| 欧美午夜片在线看| 精品国产第一区二区三区观看体验 | 一区二区三区四区高清精品免费观看 | 在线观看av一区| 日韩亚洲欧美一区二区三区| 亚洲国产一区二区三区| 极品少妇xxxx精品少妇偷拍| a在线播放不卡| 中文字幕免费不卡| 三级不卡在线观看| 欧美精品色一区二区三区| 一区二区高清在线| 欧美色综合网站| 亚洲自拍另类综合| 欧美精品免费视频| 日本成人超碰在线观看| 欧美一区二区三区系列电影| 蜜臀av性久久久久av蜜臀妖精 | 午夜精品久久久久久久久久久 | 成人高清av在线| 亚洲免费观看在线视频| 亚洲成av人片在www色猫咪| 狠狠网亚洲精品| 欧美在线不卡视频| 亚洲第四色夜色| 欧美精品1区2区3区| 免费成人小视频| 欧美在线小视频| 日韩精品一区第一页| 日韩精品中午字幕| 成人午夜精品一区二区三区| 日韩一区二区三区在线视频| 狠狠色狠狠色综合系列| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | aa级大片欧美| 亚洲精品自拍动漫在线| 国产精品一区不卡| 亚洲色图视频网| proumb性欧美在线观看| 亚洲精品久久久蜜桃| 91精品国产综合久久久久久漫画| 韩国三级中文字幕hd久久精品| 亚洲国产成人午夜在线一区| 色丁香久综合在线久综合在线观看| 日本三级韩国三级欧美三级| 国产喷白浆一区二区三区| 国产一区激情在线| 中文字幕亚洲一区二区av在线| 成人免费va视频| 午夜精品久久久久久不卡8050| 日韩免费高清视频| 日本久久电影网| 国产精品一区三区| 亚洲国产wwwccc36天堂| 久久亚洲一级片| 欧美日韩另类国产亚洲欧美一级| 亚洲制服丝袜av| xf在线a精品一区二区视频网站| 91亚洲精品久久久蜜桃| 亚洲国产人成综合网站| 欧美不卡一区二区| 91麻豆成人久久精品二区三区| 免费在线视频一区| 亚洲黄色免费电影| 久久精品人人爽人人爽| 丁香婷婷综合激情五月色| 欧美激情在线一区二区三区| 精品视频资源站| av不卡免费在线观看| 国精产品一区一区三区mba视频| 亚洲一卡二卡三卡四卡五卡| 欧美国产精品一区二区三区| 中文在线一区二区| 日韩一区二区在线看片| 色婷婷亚洲综合| 99久久精品免费看国产免费软件| 亚洲蜜臀av乱码久久精品| 久久蜜臀中文字幕| 日韩精品一区二区三区swag | 国产99久久精品| 蜜臀av亚洲一区中文字幕| 亚洲一线二线三线久久久| 国产精品人妖ts系列视频| www国产成人| 精品久久久久香蕉网| 欧美一区中文字幕| 777xxx欧美| 欧美日韩电影一区| 欧美日韩高清影院| 日本高清不卡视频| 色悠悠亚洲一区二区| 91一区二区三区在线观看| 成人少妇影院yyyy| 成人午夜视频免费看| 丁香亚洲综合激情啪啪综合| 国产成人午夜99999| 亚洲123区在线观看| 亚洲图片欧美视频| 午夜影视日本亚洲欧洲精品| 亚洲一级二级在线| 视频一区欧美精品| 麻豆精品新av中文字幕| 毛片不卡一区二区| 寂寞少妇一区二区三区| 国产在线日韩欧美| 国产69精品久久99不卡| 成人三级伦理片| 在线观看一区二区精品视频| 在线观看欧美精品| 91精品国产综合久久精品麻豆| 欧美日韩1234| 精品欧美乱码久久久久久| 日韩精品综合一本久道在线视频| 精品日韩av一区二区| 国产网站一区二区| 亚洲丝袜美腿综合| 日韩制服丝袜av| 激情深爱一区二区| 99久久99久久精品免费观看 | 日韩美女视频一区二区| 一个色在线综合| 日本vs亚洲vs韩国一区三区| 国产精品一区三区| 欧美色男人天堂| 精品少妇一区二区三区| 国产精品理伦片| 中文久久乱码一区二区| 一区二区三区精品在线观看| 日韩精品欧美精品| 高清视频一区二区| 欧美视频一区二| 久久一区二区三区四区| 亚洲精品欧美二区三区中文字幕| 亚洲r级在线视频| 国产一区 二区 三区一级| 91亚洲男人天堂| 日韩一区二区三区av| 亚洲欧美色综合| 极品美女销魂一区二区三区| 色婷婷综合中文久久一本| 欧美电视剧免费观看| 亚洲精品免费在线播放| 国产激情一区二区三区桃花岛亚洲| 色婷婷久久综合| 久久精品亚洲麻豆av一区二区| 一区二区成人在线| 国产91精品免费| 欧美电影免费观看高清完整版在线 | 97精品久久久午夜一区二区三区| 欧美一区二区国产| 玉足女爽爽91| 国产suv精品一区二区三区| 欧美精品视频www在线观看| 1024亚洲合集| 国产一区欧美日韩| 日韩欧美亚洲国产另类 | 亚洲国产成人午夜在线一区| 日韩成人av影视| 日本精品视频一区二区三区| 国产亚洲精品免费| 捆绑紧缚一区二区三区视频| 国产一区二区福利视频| 精品视频在线看| 亚洲日本欧美天堂| 成人网在线免费视频| 精品卡一卡二卡三卡四在线| 亚洲大片免费看| 91久久国产最好的精华液| 中文字幕亚洲成人| 成人精品一区二区三区四区| 日韩精品一区二区三区中文不卡 | 一区二区中文视频| 国产成人av电影在线播放| 久久婷婷久久一区二区三区| 久久国产人妖系列| 日韩免费视频一区二区| 日韩经典一区二区|