Ethernet test for ECE 4180 and others to find your IP address and do a simple HTTP GET request over port 80.

Dependencies:   mbed Socket lwip-eth lwip-sys lwip

Committer:
mkersh3
Date:
Thu Apr 04 05:26:09 2013 +0000
Revision:
0:e7ca326e76ee
Ethernet Test for ECE4180 and others to find their IP Address and do a simple HTTP GET request over port 80.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mkersh3 0:e7ca326e76ee 1 /*----------------------------------------------------------------------------
mkersh3 0:e7ca326e76ee 2 * RL-ARM - RTX
mkersh3 0:e7ca326e76ee 3 *----------------------------------------------------------------------------
mkersh3 0:e7ca326e76ee 4 * Name: RT_LIST.H
mkersh3 0:e7ca326e76ee 5 * Purpose: Functions for the management of different lists
mkersh3 0:e7ca326e76ee 6 * Rev.: V4.50
mkersh3 0:e7ca326e76ee 7 *----------------------------------------------------------------------------
mkersh3 0:e7ca326e76ee 8 *
mkersh3 0:e7ca326e76ee 9 * Copyright (c) 1999-2009 KEIL, 2009-2012 ARM Germany GmbH
mkersh3 0:e7ca326e76ee 10 * All rights reserved.
mkersh3 0:e7ca326e76ee 11 * Redistribution and use in source and binary forms, with or without
mkersh3 0:e7ca326e76ee 12 * modification, are permitted provided that the following conditions are met:
mkersh3 0:e7ca326e76ee 13 * - Redistributions of source code must retain the above copyright
mkersh3 0:e7ca326e76ee 14 * notice, this list of conditions and the following disclaimer.
mkersh3 0:e7ca326e76ee 15 * - Redistributions in binary form must reproduce the above copyright
mkersh3 0:e7ca326e76ee 16 * notice, this list of conditions and the following disclaimer in the
mkersh3 0:e7ca326e76ee 17 * documentation and/or other materials provided with the distribution.
mkersh3 0:e7ca326e76ee 18 * - Neither the name of ARM nor the names of its contributors may be used
mkersh3 0:e7ca326e76ee 19 * to endorse or promote products derived from this software without
mkersh3 0:e7ca326e76ee 20 * specific prior written permission.
mkersh3 0:e7ca326e76ee 21 *
mkersh3 0:e7ca326e76ee 22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mkersh3 0:e7ca326e76ee 23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mkersh3 0:e7ca326e76ee 24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
mkersh3 0:e7ca326e76ee 25 * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
mkersh3 0:e7ca326e76ee 26 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
mkersh3 0:e7ca326e76ee 27 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
mkersh3 0:e7ca326e76ee 28 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
mkersh3 0:e7ca326e76ee 29 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
mkersh3 0:e7ca326e76ee 30 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
mkersh3 0:e7ca326e76ee 31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
mkersh3 0:e7ca326e76ee 32 * POSSIBILITY OF SUCH DAMAGE.
mkersh3 0:e7ca326e76ee 33 *---------------------------------------------------------------------------*/
mkersh3 0:e7ca326e76ee 34
mkersh3 0:e7ca326e76ee 35 /* Definitions */
mkersh3 0:e7ca326e76ee 36
mkersh3 0:e7ca326e76ee 37 /* Values for 'cb_type' */
mkersh3 0:e7ca326e76ee 38 #define TCB 0
mkersh3 0:e7ca326e76ee 39 #define MCB 1
mkersh3 0:e7ca326e76ee 40 #define SCB 2
mkersh3 0:e7ca326e76ee 41 #define MUCB 3
mkersh3 0:e7ca326e76ee 42 #define HCB 4
mkersh3 0:e7ca326e76ee 43
mkersh3 0:e7ca326e76ee 44 /* Variables */
mkersh3 0:e7ca326e76ee 45 extern struct OS_XCB os_rdy;
mkersh3 0:e7ca326e76ee 46 extern struct OS_XCB os_dly;
mkersh3 0:e7ca326e76ee 47
mkersh3 0:e7ca326e76ee 48 /* Functions */
mkersh3 0:e7ca326e76ee 49 extern void rt_put_prio (P_XCB p_CB, P_TCB p_task);
mkersh3 0:e7ca326e76ee 50 extern P_TCB rt_get_first (P_XCB p_CB);
mkersh3 0:e7ca326e76ee 51 extern void rt_put_rdy_first (P_TCB p_task);
mkersh3 0:e7ca326e76ee 52 extern P_TCB rt_get_same_rdy_prio (void);
mkersh3 0:e7ca326e76ee 53 extern void rt_resort_prio (P_TCB p_task);
mkersh3 0:e7ca326e76ee 54 extern void rt_put_dly (P_TCB p_task, U16 delay);
mkersh3 0:e7ca326e76ee 55 extern void rt_dec_dly (void);
mkersh3 0:e7ca326e76ee 56 extern void rt_rmv_list (P_TCB p_task);
mkersh3 0:e7ca326e76ee 57 extern void rt_rmv_dly (P_TCB p_task);
mkersh3 0:e7ca326e76ee 58 extern void rt_psq_enq (OS_ID entry, U32 arg);
mkersh3 0:e7ca326e76ee 59
mkersh3 0:e7ca326e76ee 60 /* This is a fast macro generating in-line code */
mkersh3 0:e7ca326e76ee 61 #define rt_rdy_prio(void) (os_rdy.p_lnk->prio)
mkersh3 0:e7ca326e76ee 62
mkersh3 0:e7ca326e76ee 63
mkersh3 0:e7ca326e76ee 64 /*----------------------------------------------------------------------------
mkersh3 0:e7ca326e76ee 65 * end of file
mkersh3 0:e7ca326e76ee 66 *---------------------------------------------------------------------------*/
mkersh3 0:e7ca326e76ee 67