Port to C027 (using AppShield and Ethernet)
Dependencies: C12832 EthernetInterface LM75B MMA7660 MQTT mbed-rtos mbed
Fork of IBMIoTClientEthernetExample by
EthernetInterface/eth_arch.h@6:37b6d0d56190, 2014-08-20 (annotated)
- Committer:
- samdanbury
- Date:
- Wed Aug 20 12:45:14 2014 +0000
- Revision:
- 6:37b6d0d56190
Code completely changed to improve the structure, flow and memory usage of the application
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
samdanbury | 6:37b6d0d56190 | 1 | /* EthernetInterface.h */ |
samdanbury | 6:37b6d0d56190 | 2 | /* Copyright (C) 2012 mbed.org, MIT License |
samdanbury | 6:37b6d0d56190 | 3 | * |
samdanbury | 6:37b6d0d56190 | 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software |
samdanbury | 6:37b6d0d56190 | 5 | * and associated documentation files (the "Software"), to deal in the Software without restriction, |
samdanbury | 6:37b6d0d56190 | 6 | * including without limitation the rights to use, copy, modify, merge, publish, distribute, |
samdanbury | 6:37b6d0d56190 | 7 | * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is |
samdanbury | 6:37b6d0d56190 | 8 | * furnished to do so, subject to the following conditions: |
samdanbury | 6:37b6d0d56190 | 9 | * |
samdanbury | 6:37b6d0d56190 | 10 | * The above copyright notice and this permission notice shall be included in all copies or |
samdanbury | 6:37b6d0d56190 | 11 | * substantial portions of the Software. |
samdanbury | 6:37b6d0d56190 | 12 | * |
samdanbury | 6:37b6d0d56190 | 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING |
samdanbury | 6:37b6d0d56190 | 14 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
samdanbury | 6:37b6d0d56190 | 15 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
samdanbury | 6:37b6d0d56190 | 16 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
samdanbury | 6:37b6d0d56190 | 17 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
samdanbury | 6:37b6d0d56190 | 18 | */ |
samdanbury | 6:37b6d0d56190 | 19 | |
samdanbury | 6:37b6d0d56190 | 20 | // Architecture specific Ethernet interface |
samdanbury | 6:37b6d0d56190 | 21 | // Must be implemented by each target |
samdanbury | 6:37b6d0d56190 | 22 | |
samdanbury | 6:37b6d0d56190 | 23 | #ifndef ETHARCH_H_ |
samdanbury | 6:37b6d0d56190 | 24 | #define ETHARCH_H_ |
samdanbury | 6:37b6d0d56190 | 25 | |
samdanbury | 6:37b6d0d56190 | 26 | #include "lwip/netif.h" |
samdanbury | 6:37b6d0d56190 | 27 | |
samdanbury | 6:37b6d0d56190 | 28 | #ifdef __cplusplus |
samdanbury | 6:37b6d0d56190 | 29 | extern "C" { |
samdanbury | 6:37b6d0d56190 | 30 | #endif |
samdanbury | 6:37b6d0d56190 | 31 | |
samdanbury | 6:37b6d0d56190 | 32 | void eth_arch_enable_interrupts(void); |
samdanbury | 6:37b6d0d56190 | 33 | void eth_arch_disable_interrupts(void); |
samdanbury | 6:37b6d0d56190 | 34 | err_t eth_arch_enetif_init(struct netif *netif); |
samdanbury | 6:37b6d0d56190 | 35 | |
samdanbury | 6:37b6d0d56190 | 36 | #ifdef __cplusplus |
samdanbury | 6:37b6d0d56190 | 37 | } |
samdanbury | 6:37b6d0d56190 | 38 | #endif |
samdanbury | 6:37b6d0d56190 | 39 | |
samdanbury | 6:37b6d0d56190 | 40 | #endif // #ifndef ETHARCHINTERFACE_H_ |
samdanbury | 6:37b6d0d56190 | 41 |