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

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

?? sam7_emac_isr.c

?? freertosV4.40 是一種small的嵌入式系統。利于嵌入式開好者入門學習嵌入式操作系統。通過對于源碼的學習可以很好的掌握freertos的運行機制。
?? C
字號:
/*
	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.

	Also see http://www.SafeRTOS.com for an IEC 61508 compliant version along
	with commercial development and support options.
	***************************************************************************
*/

/* 
Changes from V3.2.4

	+ Also read the EMAC_RSR register in the EMAC ISR as a work around the 
	  the EMAC bug that can reset the RX bit in EMAC_ISR register before the
	  bit has been read.

Changes from V4.0.1

	+ Only check the interrupt status register to see if an EMAC Tx interrupt
	  has occurred.  Previously the TSR register was also inspected.
*/

#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
#include "SAM7_EMAC.h"
#include "AT91SAM7X256.h"

/*-----------------------------------------------------------*/

/* The semaphore used to signal the arrival of new data to the interface
task. */
static xSemaphoreHandle xSemaphore = NULL;

void vEMACISR( void ) __attribute__((naked));

/*-----------------------------------------------------------*/
/*
 * The EMAC ISR.  Handles both Tx and Rx complete interrupts.
 */
void vEMACISR( void )
{
	/* This ISR can cause a context switch, so the first statement must be a
	call to the portENTER_SWITCHING_ISR() macro.  This must be BEFORE any
	variable declarations. */
	portENTER_SWITCHING_ISR();

	/* Variable definitions can be made now. */
	volatile unsigned portLONG ulIntStatus, ulEventStatus;
	portBASE_TYPE xSwitchRequired = pdFALSE;
    extern void vClearEMACTxBuffer( void );

	/* Find the cause of the interrupt. */
	ulIntStatus = AT91C_BASE_EMAC->EMAC_ISR;
	ulEventStatus = AT91C_BASE_EMAC->EMAC_RSR;

	if( ( ulIntStatus & AT91C_EMAC_RCOMP ) || ( ulEventStatus & AT91C_EMAC_REC ) )
	{
		/* A frame has been received, signal the lwIP task so it can process
		the Rx descriptors. */
		xSwitchRequired = xSemaphoreGiveFromISR( xSemaphore, pdFALSE );
		AT91C_BASE_EMAC->EMAC_RSR = AT91C_EMAC_REC;
	}

	if( ulIntStatus & AT91C_EMAC_TCOMP )
	{
		/* A frame has been transmitted.  Mark all the buffers used by the
		frame just transmitted as free again. */
		vClearEMACTxBuffer();
		AT91C_BASE_EMAC->EMAC_TSR = AT91C_EMAC_COMP;
	}

	/* Clear the interrupt. */
	AT91C_BASE_AIC->AIC_EOICR = 0;

	/* If a task was woken by either a frame being received then we may need to 
	switch to another task. */
	portEXIT_SWITCHING_ISR( xSwitchRequired );
}
/*-----------------------------------------------------------*/

void vPassEMACSemaphore( xSemaphoreHandle xCreatedSemaphore )
{
	/* Simply store the semaphore that should be used by the ISR. */
	xSemaphore = xCreatedSemaphore;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品自拍毛片| 欧美日韩精品一二三区| 久久久久久电影| 国产尤物一区二区| 久久久久久久久久久久久女国产乱 | 欧美男人的天堂一二区| 香蕉成人伊视频在线观看| 欧美日韩1234| 蓝色福利精品导航| 久久久另类综合| 91丝袜国产在线播放| 亚洲一区二三区| 日韩一区二区三区精品视频| 波多野结衣在线aⅴ中文字幕不卡| 久久久精品日韩欧美| 99久久精品国产麻豆演员表| 亚洲精品成人在线| 欧美一区二区三区喷汁尤物| 久久se精品一区精品二区| 中文字幕av一区二区三区免费看 | 欧美一区二区三区免费在线看| 精东粉嫩av免费一区二区三区| 国产精品区一区二区三| 在线免费不卡电影| 紧缚奴在线一区二区三区| 国产精品毛片久久久久久| 在线看不卡av| 国产一区二区剧情av在线| 中文字幕在线视频一区| 欧美日本在线看| 国产a精品视频| 日本不卡高清视频| 国产精品久线在线观看| 欧美精品aⅴ在线视频| 国产乱码字幕精品高清av| 一区二区欧美精品| 久久在线免费观看| 欧美色老头old∨ideo| 国产一区二区视频在线| 一区二区三国产精华液| 久久蜜桃av一区精品变态类天堂| 91福利资源站| 高清国产一区二区| 麻豆精品一区二区av白丝在线 | 亚洲男同性恋视频| www国产精品av| 欧美男男青年gay1069videost| 粉嫩13p一区二区三区| 免费的成人av| 亚洲国产精品精华液网站| 国产日韩视频一区二区三区| 91精品久久久久久久久99蜜臂| 成人av网址在线观看| av日韩在线网站| 久久色中文字幕| 欧美日韩国产综合草草| 性久久久久久久久久久久| 欧美精品亚洲二区| 久久精品国产亚洲一区二区三区| 欧美午夜理伦三级在线观看| 亚洲一区二区成人在线观看| 欧美日韩中文字幕一区| 丝袜亚洲另类丝袜在线| 久久久www免费人成精品| 亚洲免费观看高清完整版在线观看| 日韩欧美亚洲国产另类| 91免费国产在线| 成人av在线网| 成人黄色在线看| 风间由美一区二区三区在线观看 | 亚洲国产日韩在线一区模特| 国产精品久久久久久久蜜臀| 久久久99精品久久| 久久综合色天天久久综合图片| 欧美一区二区三区喷汁尤物| 在线播放亚洲一区| 日韩一区二区三区四区五区六区| 欧美喷潮久久久xxxxx| 欧美色图激情小说| 欧美色老头old∨ideo| 欧美丰满少妇xxxbbb| 欧美日韩三级一区| 欧美一区二区三区喷汁尤物| 欧美一级日韩一级| 日韩美女一区二区三区四区| 欧美一区二区女人| 日韩欧美高清dvd碟片| 亚洲精品在线免费观看视频| 久久嫩草精品久久久精品| 国产亚洲视频系列| 国产精品久99| 亚洲午夜电影在线观看| 性做久久久久久| 久久福利视频一区二区| 国产成人丝袜美腿| 一本色道亚洲精品aⅴ| 91久久精品一区二区三| 欧美日韩mp4| 精品毛片乱码1区2区3区| 久久久不卡网国产精品一区| 一区在线观看免费| 亚洲午夜在线电影| 久久激情五月激情| 不卡的看片网站| 欧美色涩在线第一页| 欧美一区二区三区性视频| 2023国产一二三区日本精品2022| 国产欧美久久久精品影院| 亚洲精品成人悠悠色影视| 日韩精品免费专区| 国产成人免费视频网站| 色哟哟国产精品| 欧美猛男超大videosgay| 久久久久久亚洲综合影院红桃| 亚洲人成在线观看一区二区| 亚洲自拍另类综合| 精品一区中文字幕| 99视频一区二区三区| 91精品国产综合久久久蜜臀图片| www日韩大片| 亚洲一区二区三区中文字幕| 久久精品国产77777蜜臀| 97久久精品人人爽人人爽蜜臀 | 91精品国产91久久综合桃花 | 风流少妇一区二区| 欧美精品在线一区二区三区| 久久久91精品国产一区二区精品| 日韩午夜在线播放| 国产日韩视频一区二区三区| 亚洲激情校园春色| 国产精品66部| 26uuu另类欧美| 一区二区三区精品在线| 久久99精品国产| 91精品国产综合久久婷婷香蕉| 国产精品麻豆久久久| 久久99国产精品免费| 欧美日韩日本视频| 亚洲综合在线电影| 成人毛片在线观看| 久久久久88色偷偷免费| 日韩中文欧美在线| 欧美图区在线视频| 亚洲一本大道在线| 欧美在线观看你懂的| 男男gaygay亚洲| 欧美伦理电影网| 91麻豆高清视频| 另类小说一区二区三区| 91黄色在线观看| 精品久久久久久综合日本欧美| 久久国产成人午夜av影院| 人人狠狠综合久久亚洲| 男女视频一区二区| 美女网站一区二区| 在线精品亚洲一区二区不卡| 中文字幕亚洲区| 丁香亚洲综合激情啪啪综合| 91精品婷婷国产综合久久性色| 亚洲乱码国产乱码精品精的特点| 国产成人精品免费| 久久久久亚洲综合| 国产乱码精品一区二区三区忘忧草 | 欧美日韩在线一区二区| 亚洲三级小视频| 91视频国产观看| 天天色天天操综合| 国产亚洲欧美日韩日本| 97久久超碰国产精品| 日韩专区欧美专区| 亚洲国产综合人成综合网站| 精品一区二区三区在线观看| 国产成人免费视频一区| 久久久综合精品| 久久精品二区亚洲w码| 精品国产麻豆免费人成网站| 久久av资源网| 欧美精品一区二区久久久| 国产一区高清在线| 国产亚洲精品福利| 波多野结衣中文字幕一区二区三区| 欧美国产欧美综合| 91在线视频在线| 亚洲国产综合色| 日韩视频一区在线观看| 久久er99热精品一区二区| 欧美激情一区二区三区不卡| 91小宝寻花一区二区三区| 亚洲自拍偷拍网站| 51精品国自产在线| 韩国女主播一区| 国产精品丝袜一区| 色菇凉天天综合网| 日韩精品高清不卡| 国产亚洲精品aa| 一本大道久久a久久精二百| 午夜欧美大尺度福利影院在线看| 日韩亚洲国产中文字幕欧美| 国产精品综合二区| 亚洲一区二区五区|