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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? portmacro.s90

?? freertosV4.40 是一種small的嵌入式系統(tǒng)。利于嵌入式開好者入門學(xué)習(xí)嵌入式操作系統(tǒng)。通過對(duì)于源碼的學(xué)習(xí)可以很好的掌握freertos的運(yùn)行機(jī)制。
?? S90
字號(hào):
;	FreeRTOS.org V4.4.0 - 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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
喷水一区二区三区| 国产精品99久久久久| 色94色欧美sute亚洲线路一ni | 欧美日韩国产电影| 午夜精品久久久久久不卡8050| 欧美婷婷六月丁香综合色| 亚洲一区在线观看视频| 91麻豆精品国产91久久久久久久久 | 欧美精品一区在线观看| 国内精品久久久久影院薰衣草| 欧美一级片在线看| 久久精品国产亚洲5555| 中文字幕的久久| 欧美三级三级三级爽爽爽| 麻豆成人综合网| 国产精品久久久久久久久免费相片| 99精品欧美一区二区蜜桃免费| 亚洲免费在线电影| 欧美成人官网二区| 99riav久久精品riav| 日本91福利区| 国产精品久99| 日韩午夜中文字幕| 色综合视频一区二区三区高清| 婷婷丁香久久五月婷婷| 久久伊99综合婷婷久久伊| 91麻豆高清视频| 精品一二三四区| 一区二区三区免费在线观看| 欧美成人aa大片| 欧美自拍丝袜亚洲| 国产成人亚洲综合色影视| 亚洲 欧美综合在线网络| 欧美国产综合色视频| 91精品国产品国语在线不卡| jlzzjlzz亚洲女人18| 久久国产精品99久久人人澡| 亚洲男同1069视频| 中文字幕第一区二区| 欧美一区二区三区四区在线观看 | 91影院在线免费观看| 午夜精彩视频在线观看不卡| 国产女人18水真多18精品一级做| 欧美性高清videossexo| 不卡的av电影在线观看| 极品瑜伽女神91| 亚洲成人av福利| 亚洲免费在线观看视频| 中文字幕电影一区| 欧美精品一区视频| 欧美一区二区福利在线| 欧美午夜一区二区三区 | 欧美色成人综合| www.激情成人| 国产精品一区二区你懂的| 麻豆国产精品一区二区三区| 午夜天堂影视香蕉久久| 亚洲欧美日韩人成在线播放| 国产欧美一二三区| 久久综合给合久久狠狠狠97色69| 欧美二区在线观看| 欧美日韩国产高清一区| 国产日产精品1区| 国产高清无密码一区二区三区| www亚洲一区| 欧美人动与zoxxxx乱| 色噜噜狠狠成人网p站| youjizz久久| 成人h精品动漫一区二区三区| 国产在线国偷精品免费看| 久久99久国产精品黄毛片色诱| 免费在线观看成人| 美女一区二区三区在线观看| 免播放器亚洲一区| 蜜桃av一区二区三区电影| 蜜臀久久久久久久| 久99久精品视频免费观看| 美女网站在线免费欧美精品| 另类专区欧美蜜桃臀第一页| 国精产品一区一区三区mba桃花| 蜜臀av一区二区三区| 激情久久五月天| 国产成人综合网站| av在线综合网| 日本国产一区二区| 555夜色666亚洲国产免| 日韩欧美一级二级三级| 成人av电影观看| 中文字幕av免费专区久久| 国产精品午夜电影| 国产精品激情偷乱一区二区∴| 国产精品视频观看| 一区二区三区四区五区视频在线观看| 亚洲一区二区视频在线| 日韩和欧美的一区| 国产伦精品一区二区三区免费 | 亚洲高清不卡在线| 捆绑紧缚一区二区三区视频| 国产精品99久| 日本韩国一区二区三区| 7777精品伊人久久久大香线蕉完整版| 日韩欧美一区二区免费| 国产精品欧美极品| 亚洲国产日韩一级| 国产综合色产在线精品| 99精品欧美一区| 欧美欧美午夜aⅴ在线观看| 欧美成人vr18sexvr| 中文字幕亚洲在| 美女久久久精品| 99re在线视频这里只有精品| 欧美日产在线观看| 欧美日韩在线播放三区| 中文字幕欧美三区| 成人性生交大片免费看在线播放 | 中文字幕一区在线观看视频| 亚洲电影中文字幕在线观看| 国产综合一区二区| 欧美中文字幕一区| 国产亚洲午夜高清国产拍精品| 亚洲一区免费观看| 高清国产一区二区| 欧美一级爆毛片| 亚洲女同ⅹxx女同tv| 国产综合色视频| 制服丝袜亚洲精品中文字幕| 国产精品欧美久久久久无广告 | 欧美挠脚心视频网站| 成人欧美一区二区三区白人| 久久av资源网| 欧美久久久久久久久中文字幕| 国产精品麻豆久久久| 看国产成人h片视频| 91视频在线看| 日韩在线播放一区二区| 色综合天天综合网国产成人综合天 | 中文字幕 久热精品 视频在线 | 视频一区在线视频| 卡一卡二国产精品| 亚洲色图丝袜美腿| **欧美大码日韩| 国产精品传媒入口麻豆| 色婷婷综合久久久久中文 | 91丝袜国产在线播放| 91精品国产综合久久蜜臀| 日韩写真欧美这视频| 91美女福利视频| 亚洲成人你懂的| 国产日产欧产精品推荐色 | 日韩欧美一区中文| 欧美亚一区二区| 欧美日韩一区中文字幕| 91成人免费在线| 欧美午夜免费电影| 欧美精品成人一区二区三区四区| 欧美三级一区二区| 制服丝袜亚洲网站| 精品国产成人系列| 久久一日本道色综合| 亚洲国产精品国自产拍av| 国产精品久久久久久久久图文区| 国产精品传媒视频| 一区二区不卡在线视频 午夜欧美不卡在 | 久久久国产一区二区三区四区小说| 欧美大片日本大片免费观看| 亚洲精品国产第一综合99久久| 亚洲欧美日韩久久| 国产精品免费av| 亚洲欧美日韩小说| 中文字幕免费一区| 国产精品色呦呦| 亚洲尤物在线视频观看| 亚洲电影视频在线| 久久精品99国产精品| 国产成人99久久亚洲综合精品| av午夜一区麻豆| 欧美肥大bbwbbw高潮| 欧美精品一区男女天堂| 欧美激情中文字幕| 亚洲一区二区在线免费观看视频| 视频一区二区国产| 国产美女精品一区二区三区| 99久久久免费精品国产一区二区| 欧美视频在线观看一区二区| 久久中文娱乐网| 亚洲人吸女人奶水| 久久99精品视频| 色香色香欲天天天影视综合网| 日韩三级免费观看| 亚洲欧美乱综合| 麻豆91在线观看| 5月丁香婷婷综合| 色成年激情久久综合| 精品久久久久久久久久久久包黑料 | 日韩高清在线电影| 成人小视频在线观看| 欧美一区二区在线看| 国产精品久久久久aaaa| 久久国产精品99精品国产 | 国产欧美日韩另类一区|