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

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

?? portmacro.s90

?? FreeRTOSV4.1.0 安裝文件 FreeRTOS 是一個源碼公開的免費的嵌入式實時操作系統
?? S90
字號:
;	FreeRTOS.org V4.1.0 - 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视频91自| 丝袜诱惑亚洲看片| 亚洲综合免费观看高清在线观看| 国产色爱av资源综合区| 久久午夜电影网| 国产丝袜欧美中文另类| 久久婷婷久久一区二区三区| 日韩三级精品电影久久久| 日韩一区二区免费视频| 欧美一卡二卡在线| 日韩欧美资源站| 国产亚洲精品超碰| 国产精品久久777777| 亚洲免费视频中文字幕| 亚洲精品视频在线| 日韩av一区二区三区| 久久福利资源站| 高清国产一区二区| 91免费在线看| 91精品国产乱码| 日本一区二区电影| 亚洲美女屁股眼交3| 一区二区三区四区中文字幕| 亚洲成av人影院| 久久精品国产一区二区三区免费看| 蜜桃av噜噜一区| 成人一区二区三区在线观看| 色老汉av一区二区三区| 欧美剧情电影在线观看完整版免费励志电影| 欧美日韩综合在线| 亚洲精品一区二区三区影院| 中文字幕二三区不卡| 日日噜噜夜夜狠狠视频欧美人| 久久精品国产99| 成人av网址在线| 欧美一区二区三区系列电影| 国产精品嫩草99a| 香蕉加勒比综合久久| 韩国毛片一区二区三区| 91网上在线视频| 日韩欧美的一区| 亚洲嫩草精品久久| 国产精品一区二区在线看| 91欧美激情一区二区三区成人| 日韩一级片网址| 亚洲自拍偷拍图区| 粉嫩aⅴ一区二区三区四区| 国产成人av一区| 亚洲日本成人在线观看| 欧美精品黑人性xxxx| 久久久久9999亚洲精品| 日本亚洲三级在线| 91浏览器入口在线观看| 久久久久久久网| 亚洲午夜在线视频| 成人激情小说乱人伦| 日韩精品一区二区三区四区 | 国产精品欧美综合在线| 视频一区免费在线观看| 成人av网站大全| 欧美高清一级片在线观看| 国产一区在线不卡| 91麻豆精品国产91久久久久久| 亚洲天堂av老司机| 成人性色生活片| 国产人妖乱国产精品人妖| 青椒成人免费视频| 欧美一区二区在线不卡| 午夜精品久久久久久久99水蜜桃| 91在线观看高清| 亚洲婷婷综合色高清在线| 国产成人精品免费视频网站| 精品对白一区国产伦| 精品一区二区免费在线观看| 欧美一卡二卡在线观看| 久久国产欧美日韩精品| 日韩亚洲欧美中文三级| 美腿丝袜亚洲综合| 欧美成人激情免费网| 麻豆精品在线播放| 亚洲精品一区二区三区精华液| 男女性色大片免费观看一区二区| 69堂成人精品免费视频| 美女视频网站久久| 2022国产精品视频| 成人永久免费视频| 一区二区三区在线观看欧美| 久久久不卡网国产精品二区| 久久精品亚洲精品国产欧美kt∨| 国产精品久久久久aaaa樱花| 亚洲品质自拍视频网站| 日韩美女视频19| 91一区二区三区在线观看| 成人动漫一区二区在线| 欧美一区二区福利视频| 亚洲一区二区在线观看视频 | 日韩一区二区视频在线观看| 亚洲女人小视频在线观看| 在线精品观看国产| 蜜臀av一区二区| 成人久久视频在线观看| 久久这里只精品最新地址| 久久久久久麻豆| 精品国内二区三区| 国产亚洲视频系列| 日韩精品影音先锋| 国产电影一区二区三区| 中文字幕第一区| 欧美日韩国产一二三| 精品一区二区三区免费毛片爱| 中文字幕欧美激情一区| 色呦呦网站一区| 乱中年女人伦av一区二区| 中文字幕一区日韩精品欧美| 欧美曰成人黄网| 久久av中文字幕片| 亚洲综合久久久| 国产午夜精品一区二区三区四区| 在线欧美一区二区| 国产69精品一区二区亚洲孕妇| 亚洲一区二区三区自拍| 国产欧美日韩麻豆91| 欧美高清激情brazzers| 99久久精品国产导航| 国产综合色视频| 五月婷婷激情综合| 亚洲欧洲制服丝袜| 久久午夜老司机| 成人小视频免费观看| 久久久久久久综合色一本| 在线免费观看日韩欧美| 国产成人福利片| 美女免费视频一区| 亚洲一区成人在线| 亚洲男人天堂av网| 亚洲丝袜美腿综合| 国产欧美一区二区精品忘忧草 | 午夜电影一区二区三区| 国产精品嫩草影院av蜜臀| 日韩精品一区二区三区在线观看| 欧美日韩欧美一区二区| 色欧美日韩亚洲| 99久久伊人网影院| 成人av网在线| 成人免费高清在线观看| 国产高清不卡二三区| 精品制服美女丁香| 国产在线一区二区| 老司机精品视频导航| 蜜桃av一区二区| 麻豆国产精品官网| 精品午夜一区二区三区在线观看 | 欧美一区二区国产| 51精品秘密在线观看| 欧美午夜电影网| 欧美在线观看视频在线| 欧美三级三级三级| 欧美日韩一区不卡| 91精品国产入口在线| 欧美一区二区大片| 日韩精品一区二区三区三区免费| 精品国产凹凸成av人导航| 欧美不卡一区二区三区四区| 欧美成人三级在线| 亚洲国产精品成人综合| 综合色天天鬼久久鬼色| 亚洲综合在线五月| 丝袜美腿亚洲综合| 麻豆久久久久久久| 高清国产一区二区| 欧美性色aⅴ视频一区日韩精品| 欧美亚洲综合久久| 日韩写真欧美这视频| 国产网红主播福利一区二区| 国产精品区一区二区三区| 亚洲欧美日韩中文播放 | 麻豆极品一区二区三区| 国产一区二区三区免费在线观看| 国产·精品毛片| 欧美亚洲精品一区| 日韩欧美一区二区久久婷婷| 国产亚洲成av人在线观看导航| 国产精品嫩草影院av蜜臀| 亚洲国产成人av| 国内精品伊人久久久久av影院| 成人av小说网| 91精品国产福利在线观看| 国产视频不卡一区| 日韩电影免费在线看| 懂色av一区二区夜夜嗨| 精品婷婷伊人一区三区三| 久久久久国色av免费看影院| 有码一区二区三区| 国产成人免费网站| 欧美一区二区三区婷婷月色| 亚洲蜜臀av乱码久久精品蜜桃| 欧美96一区二区免费视频| www.欧美.com| www激情久久|