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

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

?? uip_task.c

?? freescale k40/k60 freertos-uip 例程
?? C
字號:
/*
	FreeRTOS.org V5.0.3 - Copyright (C) 2003-2008 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.
	***************************************************************************
*/
/* Standard includes. */
#include <string.h>

/* Scheduler includes. */
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"

/* uip includes. */
#include "uip.h"
#include "uip_arp.h"
#include "httpd.h"
#include "timer.h"
#include "clock-arch.h"
#include "timer.h"

/* Demo includes. */
#include "enet_freertos.h"
#include "partest.h"

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

/* Shortcut to the header within the Rx buffer. */
#define xHeader ((struct uip_eth_hdr *) &uip_buf[ 0 ])

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

/*
 * Port functions required by the uIP stack.
 */
clock_time_t clock_time( void );

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

/* The semaphore used by the ISR to wake the uIP task. */
extern xSemaphoreHandle xENETSemaphore;

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

clock_time_t clock_time( void )
{
	return xTaskGetTickCount();
}


void vuIP_Task( void *pvParameters )
{
portBASE_TYPE i;
uip_ipaddr_t xIPAddr;
struct timer periodic_timer, arp_timer;

	/* Enable/Reset the Ethernet Controller */

	/* Create the semaphore used by the ISR to wake this task. */
	vSemaphoreCreateBinary( xENETSemaphore );
	
	/* Initialise the uIP stack. */
	timer_set( &periodic_timer, configTICK_RATE_HZ / 2 );
	timer_set( &arp_timer, configTICK_RATE_HZ * 10 );
	uip_init();
	uip_ipaddr( xIPAddr, configIP_ADDR0, configIP_ADDR1, configIP_ADDR2, configIP_ADDR3 );
	uip_sethostaddr( xIPAddr );
	httpd_init();

	vInitENET();

	for( ;; )
	{
		/* Is there received data ready to be processed? */
		uip_len = ulENETRx();
		
		if( uip_len > 0 )
		{
			/* Standard uIP loop taken from the uIP manual. */

			if( xHeader->type == htons( UIP_ETHTYPE_IP ) )
			{
				uip_arp_ipin();
				uip_input();

				/* If the above function invocation resulted in data that
				should be sent out on the network, the global variable
				uip_len is set to a value > 0. */
				if( uip_len > 0 )
				{
					uip_arp_out();
					vENETTx();
				}
			}
			else if( xHeader->type == htons( UIP_ETHTYPE_ARP ) )
			{
				uip_arp_arpin();

				/* If the above function invocation resulted in data that
				should be sent out on the network, the global variable
				uip_len is set to a value > 0. */
				if( uip_len > 0 )
				{
					vENETTx();
				}
			}			
		}
		else
		{
			if( timer_expired( &periodic_timer ) )
			{
				timer_reset( &periodic_timer );
				for( i = 0; i < UIP_CONNS; i++ )
				{
					uip_periodic( i );
	
					/* If the above function invocation resulted in data that
					should be sent out on the network, the global variable
					uip_len is set to a value > 0. */
					if( uip_len > 0 )
					{
						uip_arp_out();
						vENETTx();
					}
				}	
	
				/* Call the ARP timer function every 10 seconds. */
				if( timer_expired( &arp_timer ) )
				{
					timer_reset( &arp_timer );
					uip_arp_timer();
				}
			}
			else
			{			
				/* We did not receive a packet, and there was no periodic
				processing to perform.  Block for a fixed period.  If a packet
				is received during this period we will be woken by the ISR
				giving us the Semaphore. */
				xSemaphoreTake( xENETSemaphore, configTICK_RATE_HZ / 2 );			
			}
		}
	}
}
/*-----------------------------------------------------------*/

void vApplicationProcessFormInput( portCHAR *pcInputString, portBASE_TYPE xInputLength )
{
char *c;

	/* Process the form input sent by the IO page of the served HTML. */

	c = strstr( pcInputString, "?" );

    if( c )
    {
		/* Turn LED's on or off in accordance with the check box status. */
		if( strstr( c, "LED0=1" ) != NULL )
		{
			vParTestSetLED( 0, 1 );
		}
		else
		{
			vParTestSetLED( 0, 0 );
		}		
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区成人| 国产午夜久久久久| 亚洲欧美日本在线| 一本高清dvd不卡在线观看| 国产精品视频线看| 91麻豆精品视频| 亚洲第一电影网| 精品久久久网站| 成人晚上爱看视频| 一区二区三区日韩在线观看| 亚洲欧洲av一区二区三区久久| 欧美视频一区二区三区四区| 狠狠色丁香婷婷综合| 一色桃子久久精品亚洲| 亚洲色图在线视频| 精品国产一区二区三区四区四| 99久久婷婷国产综合精品| 日本午夜一本久久久综合| 国产欧美日韩三级| 日韩一级片网址| 91视频免费看| 欧美欧美欧美欧美首页| 99免费精品视频| 国产在线精品免费| 日韩国产欧美三级| 九九视频精品免费| 午夜电影一区二区三区| 亚洲综合自拍偷拍| 美女www一区二区| 天堂一区二区在线免费观看| 亚洲图片激情小说| 亚洲电影中文字幕在线观看| 一个色综合av| 久久精品72免费观看| 日日嗨av一区二区三区四区| 国内成人免费视频| 在线视频中文字幕一区二区| 北条麻妃一区二区三区| 欧美日韩国产三级| 国产精品婷婷午夜在线观看| 日韩vs国产vs欧美| 99久久精品免费看国产免费软件| 91精品国产美女浴室洗澡无遮挡| 欧美日韩国产中文| 中日韩免费视频中文字幕| 丝瓜av网站精品一区二区| 92精品国产成人观看免费| 久久在线免费观看| 亚洲国产精品二十页| 日本一区二区电影| 麻豆成人在线观看| 欧美日韩另类一区| 国产精品久久三| 亚洲丝袜美腿综合| 国产精品一品二品| 在线欧美日韩国产| 国产免费久久精品| 久久www免费人成看片高清| 色先锋资源久久综合| 国产精品午夜春色av| 精久久久久久久久久久| 7777精品伊人久久久大香线蕉 | 成人激情文学综合网| 成人一区二区三区视频在线观看| 欧美日韩成人在线| 五月开心婷婷久久| 欧美性猛交一区二区三区精品| 日韩毛片视频在线看| 风间由美一区二区三区在线观看 | 日韩亚洲欧美高清| 亚洲一级二级在线| 久草在线在线精品观看| 制服视频三区第一页精品| 亚洲va欧美va国产va天堂影院| 91日韩在线专区| 综合电影一区二区三区 | 亚洲va欧美va国产va天堂影院| 一本色道久久综合亚洲91| 亚洲欧美日本韩国| 欧洲国内综合视频| 亚洲一级在线观看| 欧美高清性hdvideosex| 亚洲国产精品99久久久久久久久| 精品一区二区免费视频| 精品国产在天天线2019| 久久99国产精品成人| 国产日韩精品久久久| 99久久777色| 亚洲va天堂va国产va久| 精品美女一区二区| 丰满白嫩尤物一区二区| 一区二区三区免费观看| 日韩欧美你懂的| 亚洲福利视频一区| 精品乱人伦一区二区三区| 成人免费视频视频在线观看免费| 国产精品福利影院| 91.com视频| 高清成人在线观看| 亚洲图片有声小说| 久久久久久久精| 久久99国产乱子伦精品免费| 中文字幕不卡的av| 欧美亚洲综合网| 精品伊人久久久久7777人| 国产精品欧美一级免费| 欧美日韩成人在线一区| 国产成人精品免费| 国产精品污网站| 欧美一二三四在线| 色综合 综合色| 日韩二区三区四区| 17c精品麻豆一区二区免费| 9191精品国产综合久久久久久| 久久国产精品72免费观看| 亚洲欧洲99久久| 久久久久久电影| 欧美日韩一级片网站| 亚洲成人久久影院| 日本一区二区三区国色天香 | 色综合久久综合中文综合网| 麻豆精品一区二区综合av| 成人欧美一区二区三区1314| 欧美成人女星排行榜| 欧美日韩精品一区二区天天拍小说| 国产91对白在线观看九色| 日韩综合在线视频| 一区二区三区四区不卡在线| 国产亲近乱来精品视频| 欧美电影免费观看高清完整版在线 | 精品少妇一区二区三区视频免付费 | 欧美日韩国产综合草草| av不卡一区二区三区| 精品一区免费av| 午夜欧美在线一二页| 一区二区三区欧美激情| 中文字幕日韩一区| 欧美成人乱码一区二区三区| 欧美日韩一区高清| 色呦呦国产精品| 99精品视频在线免费观看| 国产精品综合二区| 美女网站在线免费欧美精品| 夜夜精品视频一区二区| 国产精品情趣视频| 中文字幕精品三区| 久久久精品影视| 久久精品一二三| 久久精品亚洲乱码伦伦中文| 久久综合久久久久88| 国产日韩欧美一区二区三区乱码 | 久久久亚洲综合| 久久亚洲精品国产精品紫薇| 精品国产乱码久久久久久影片| 日韩欧美一区中文| 日韩三级免费观看| 久久五月婷婷丁香社区| 国产日韩亚洲欧美综合| 日韩一区在线播放| 亚洲国产wwwccc36天堂| 蜜臀av性久久久久av蜜臀妖精| 美女网站视频久久| 成人黄页毛片网站| 色一情一伦一子一伦一区| 91.com视频| 欧美精彩视频一区二区三区| 中文字幕亚洲视频| 亚洲一级片在线观看| 久久精品久久精品| 成人毛片老司机大片| 在线免费观看不卡av| 欧美一区二区三区免费视频| 亚洲精品一线二线三线| 国产女人aaa级久久久级| 亚洲美腿欧美偷拍| 蜜桃免费网站一区二区三区| 国产精品一卡二卡在线观看| 91亚洲精品久久久蜜桃网站| 欧美日韩一二区| 久久久精品国产免费观看同学| 亚洲欧美日韩系列| 久久69国产一区二区蜜臀| 高清在线观看日韩| 91精品国产综合久久蜜臀| 国产精品系列在线| 免费在线观看一区| 日韩**一区毛片| 国产成都精品91一区二区三| 欧美视频在线一区| 久久久高清一区二区三区| 亚洲一区二区在线观看视频 | 1区2区3区精品视频| 日本不卡视频一二三区| 成人小视频免费观看| 欧美精品久久天天躁| 中文字幕日韩精品一区| 韩国女主播一区| 91精品国产欧美一区二区成人 | 国产在线视频一区二区| 在线观看av一区二区|