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
EthernetInterface/lwip-eth/arch/lpc17_emac.h@0:e7ca326e76ee, 2013-04-04 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
mkersh3 | 0:e7ca326e76ee | 1 | /********************************************************************** |
mkersh3 | 0:e7ca326e76ee | 2 | * $Id$ lpc17_emac.h 2011-11-20 |
mkersh3 | 0:e7ca326e76ee | 3 | *//** |
mkersh3 | 0:e7ca326e76ee | 4 | * @file lpc17_emac.h |
mkersh3 | 0:e7ca326e76ee | 5 | * @brief LPC17 ethernet driver header file for LWIP |
mkersh3 | 0:e7ca326e76ee | 6 | * @version 1.0 |
mkersh3 | 0:e7ca326e76ee | 7 | * @date 20. Nov. 2011 |
mkersh3 | 0:e7ca326e76ee | 8 | * @author NXP MCU SW Application Team |
mkersh3 | 0:e7ca326e76ee | 9 | * |
mkersh3 | 0:e7ca326e76ee | 10 | * Copyright(C) 2011, NXP Semiconductor |
mkersh3 | 0:e7ca326e76ee | 11 | * All rights reserved. |
mkersh3 | 0:e7ca326e76ee | 12 | * |
mkersh3 | 0:e7ca326e76ee | 13 | *********************************************************************** |
mkersh3 | 0:e7ca326e76ee | 14 | * Software that is described herein is for illustrative purposes only |
mkersh3 | 0:e7ca326e76ee | 15 | * which provides customers with programming information regarding the |
mkersh3 | 0:e7ca326e76ee | 16 | * products. This software is supplied "AS IS" without any warranties. |
mkersh3 | 0:e7ca326e76ee | 17 | * NXP Semiconductors assumes no responsibility or liability for the |
mkersh3 | 0:e7ca326e76ee | 18 | * use of the software, conveys no license or title under any patent, |
mkersh3 | 0:e7ca326e76ee | 19 | * copyright, or mask work right to the product. NXP Semiconductors |
mkersh3 | 0:e7ca326e76ee | 20 | * reserves the right to make changes in the software without |
mkersh3 | 0:e7ca326e76ee | 21 | * notification. NXP Semiconductors also make no representation or |
mkersh3 | 0:e7ca326e76ee | 22 | * warranty that such application will be suitable for the specified |
mkersh3 | 0:e7ca326e76ee | 23 | * use without further testing or modification. |
mkersh3 | 0:e7ca326e76ee | 24 | **********************************************************************/ |
mkersh3 | 0:e7ca326e76ee | 25 | |
mkersh3 | 0:e7ca326e76ee | 26 | #ifndef __LPC17_EMAC_H |
mkersh3 | 0:e7ca326e76ee | 27 | #define __LPC17_EMAC_H |
mkersh3 | 0:e7ca326e76ee | 28 | |
mkersh3 | 0:e7ca326e76ee | 29 | #include "lwip/opt.h" |
mkersh3 | 0:e7ca326e76ee | 30 | #include "lwip/netif.h" |
mkersh3 | 0:e7ca326e76ee | 31 | |
mkersh3 | 0:e7ca326e76ee | 32 | #ifdef __cplusplus |
mkersh3 | 0:e7ca326e76ee | 33 | extern "C" |
mkersh3 | 0:e7ca326e76ee | 34 | { |
mkersh3 | 0:e7ca326e76ee | 35 | #endif |
mkersh3 | 0:e7ca326e76ee | 36 | |
mkersh3 | 0:e7ca326e76ee | 37 | /* These functions are only visible when not using an RTOS */ |
mkersh3 | 0:e7ca326e76ee | 38 | #if NO_SYS == 1 |
mkersh3 | 0:e7ca326e76ee | 39 | void lpc_enetif_input(struct netif *netif); |
mkersh3 | 0:e7ca326e76ee | 40 | s32_t lpc_tx_ready(struct netif *netif); |
mkersh3 | 0:e7ca326e76ee | 41 | s32_t lpc_rx_queue(struct netif *netif); |
mkersh3 | 0:e7ca326e76ee | 42 | void lpc_tx_reclaim(struct netif *netif); |
mkersh3 | 0:e7ca326e76ee | 43 | #endif |
mkersh3 | 0:e7ca326e76ee | 44 | |
mkersh3 | 0:e7ca326e76ee | 45 | err_t lpc_enetif_init(struct netif *netif); |
mkersh3 | 0:e7ca326e76ee | 46 | |
mkersh3 | 0:e7ca326e76ee | 47 | #ifdef __cplusplus |
mkersh3 | 0:e7ca326e76ee | 48 | } |
mkersh3 | 0:e7ca326e76ee | 49 | #endif |
mkersh3 | 0:e7ca326e76ee | 50 | |
mkersh3 | 0:e7ca326e76ee | 51 | #endif /* __LPC17_EMAC_H */ |