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

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

?? portmacro.s90

?? FreeRTOS V4.2.1,增加了AVR32 UC3 和 LPC2368 的支持
?? S90
字號:
;	FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 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一区二区三区免费野_久草精品视频
激情亚洲综合在线| 亚州成人在线电影| 精品电影一区二区| 欧美一区二区观看视频| 欧美日韩高清一区二区不卡| 欧美日韩亚洲综合| 欧美日本一区二区在线观看| 欧美在线视频全部完| 欧美日韩国产成人在线免费| 欧美日韩成人综合在线一区二区| 欧美蜜桃一区二区三区| 日韩精品一区二区在线| 久久久久久影视| 亚洲国产电影在线观看| 亚洲视频一区在线| 亚洲成人久久影院| 男人的天堂久久精品| 久久成人18免费观看| 国产精品一区免费视频| 高清在线不卡av| 成人免费视频免费观看| 在线观看一区二区视频| 欧美一区欧美二区| 欧美国产成人精品| 亚洲一区二区免费视频| 狠狠色丁香婷婷综合久久片| www.成人网.com| 欧美影片第一页| 国产欧美日韩综合精品一区二区| 亚洲天堂久久久久久久| 日产国产欧美视频一区精品 | 99re这里只有精品视频首页| 日本高清无吗v一区| 日韩女优制服丝袜电影| 欧美韩日一区二区三区四区| 亚洲乱码国产乱码精品精的特点| 日韩黄色小视频| 国产精品一区不卡| 欧美日韩在线直播| 久久九九99视频| 亚洲成人精品一区二区| www.成人网.com| 亚洲精品一区二区三区在线观看 | 精品精品欲导航| 亚洲欧美国产高清| 国产在线一区二区综合免费视频| 91极品视觉盛宴| 久久久久国产精品厨房| 亚洲v日本v欧美v久久精品| 国产成人综合网站| 日韩欧美资源站| 亚洲精品中文字幕在线观看| 国产一区二区毛片| 4438x亚洲最大成人网| 亚洲免费观看视频| 成人avav在线| 亚洲国产精品99久久久久久久久| 亚洲高清中文字幕| 欧美亚洲综合色| 亚洲美女电影在线| 99麻豆久久久国产精品免费| 精品国产免费视频| 蜜臀91精品一区二区三区| 欧美日韩三级在线| 亚洲综合另类小说| 色94色欧美sute亚洲13| 亚洲欧美日韩国产一区二区三区| 国产剧情一区二区三区| 精品国产一区久久| 美女国产一区二区| 欧美r级在线观看| 美女视频黄免费的久久| 欧美一级黄色录像| 久久精品国产精品亚洲红杏| 欧美大片免费久久精品三p| 日韩综合一区二区| 日韩一区二区在线看片| 免费一级片91| 精品av久久707| 国产精品一区一区| 国产精品精品国产色婷婷| 99re成人在线| 亚洲国产日韩一级| 欧美一区二区三区影视| 日本不卡123| 国产喂奶挤奶一区二区三区| 粉嫩嫩av羞羞动漫久久久 | 麻豆一区二区三区| 精品成人一区二区三区四区| 国产成人精品aa毛片| 中文字幕在线不卡视频| 色呦呦一区二区三区| 亚洲第一二三四区| 精品少妇一区二区三区免费观看| 国产精品综合二区| 亚洲欧美日韩电影| 欧美日韩国产精品成人| 国产在线精品一区在线观看麻豆| 久久久久亚洲蜜桃| 一本色道久久综合亚洲91| 婷婷中文字幕综合| 久久久久久免费网| 91福利国产成人精品照片| 蜜臀av性久久久久av蜜臀妖精| 国产日韩欧美亚洲| 色成人在线视频| 国产成人a级片| 亚洲精品视频免费看| 日韩一级黄色片| 一本到三区不卡视频| 日韩国产欧美在线视频| 国产精品沙发午睡系列990531| 欧美无砖砖区免费| 国产成人小视频| 天堂一区二区在线| 国产精品久久毛片av大全日韩| 欧美乱妇20p| 9人人澡人人爽人人精品| 日本不卡一区二区三区高清视频| 欧美国产视频在线| 欧美一二三在线| 在线观看91精品国产入口| 国产精品亚洲专一区二区三区 | 国产91精品一区二区麻豆亚洲| 亚洲无人区一区| 国产精品美女久久久久aⅴ | 亚洲欧美另类在线| 国产欧美日韩视频一区二区| 欧美日韩一区不卡| 不卡av在线免费观看| 午夜精品视频在线观看| 国产精品免费av| 久久精品一区二区三区四区| 欧美日韩在线播放三区四区| 成人91在线观看| 成人在线视频一区| 极品美女销魂一区二区三区| 亚洲mv大片欧洲mv大片精品| 亚洲老妇xxxxxx| 国产精品嫩草影院com| 久久蜜桃av一区二区天堂 | 亚洲欧美精品午睡沙发| 欧美激情综合五月色丁香小说| 欧美电影免费提供在线观看| 欧美精品一二三| 欧美日韩国产综合视频在线观看 | 免费观看一级特黄欧美大片| 亚洲电影激情视频网站| 亚洲国产中文字幕在线视频综合| 1024成人网| 亚洲丝袜美腿综合| 韩国一区二区在线观看| 日本怡春院一区二区| 婷婷综合另类小说色区| 日本伊人午夜精品| 美女脱光内衣内裤视频久久影院| 日韩中文字幕麻豆| 日韩高清不卡一区二区三区| 免费在线欧美视频| 精品一区二区三区久久| 国产精品白丝av| 成人高清免费观看| 99久久精品免费观看| 色一情一乱一乱一91av| 欧美亚洲图片小说| 欧美久久高跟鞋激| 日韩午夜小视频| 久久综合久久久久88| 国产欧美日韩不卡| 伊人开心综合网| 视频一区在线视频| 国产精品香蕉一区二区三区| 成人激情小说网站| 欧美日韩1234| 久久久99久久| 亚洲视频在线观看三级| 99久久综合狠狠综合久久| 欧美日韩综合在线| 日韩久久免费av| 国产精品久久久久aaaa樱花| 性做久久久久久久久| 国产一区二区三区黄视频| 97se狠狠狠综合亚洲狠狠| 69久久99精品久久久久婷婷 | 一区二区三区91| 久草在线在线精品观看| av亚洲精华国产精华精| 欧美日韩国产一二三| 久久精品亚洲麻豆av一区二区 | 99久久国产综合精品麻豆| 欧美亚洲国产怡红院影院| 精品日韩99亚洲| 一区av在线播放| 欧美不卡视频一区| 国产一区二区美女| 欧美大片国产精品| 亚洲777理论| 国产女人18水真多18精品一级做| 国产精品白丝在线| 99久久精品免费精品国产|