Ethernet-based network support for mbedConnectorInterface.
Dependencies: libnsdl EthernetInterface mbed-rtos
Dependents: IoT_LED_demo ServoTest uWater_Project hackathon ... more
network_stubs/network_stubs.h@27:e457ad64cc7a, 2016-12-01 (annotated)
- Committer:
- ansond
- Date:
- Thu Dec 01 04:07:24 2016 +0000
- Revision:
- 27:e457ad64cc7a
- Parent:
- 1:cb681dfa1678
updates
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ansond | 0:31292d956e92 | 1 | /** |
ansond | 0:31292d956e92 | 2 | * @file network_stubs.h |
ansond | 0:31292d956e92 | 3 | * @brief mbed Endpoint Network Stubs header (Ethernet) |
ansond | 0:31292d956e92 | 4 | * @author Doug Anson |
ansond | 0:31292d956e92 | 5 | * @version 1.0 |
ansond | 0:31292d956e92 | 6 | * @see |
ansond | 0:31292d956e92 | 7 | * |
ansond | 0:31292d956e92 | 8 | * Copyright (c) 2014 |
ansond | 0:31292d956e92 | 9 | * |
ansond | 0:31292d956e92 | 10 | * Licensed under the Apache License, Version 2.0 (the "License"); |
ansond | 0:31292d956e92 | 11 | * you may not use this file except in compliance with the License. |
ansond | 0:31292d956e92 | 12 | * You may obtain a copy of the License at |
ansond | 0:31292d956e92 | 13 | * |
ansond | 0:31292d956e92 | 14 | * http://www.apache.org/licenses/LICENSE-2.0 |
ansond | 0:31292d956e92 | 15 | * |
ansond | 0:31292d956e92 | 16 | * Unless required by applicable law or agreed to in writing, software |
ansond | 0:31292d956e92 | 17 | * distributed under the License is distributed on an "AS IS" BASIS, |
ansond | 0:31292d956e92 | 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
ansond | 0:31292d956e92 | 19 | * See the License for the specific language governing permissions and |
ansond | 0:31292d956e92 | 20 | * limitations under the License. |
ansond | 0:31292d956e92 | 21 | */ |
ansond | 0:31292d956e92 | 22 | #ifndef __ETHERNET_STUBS_H__ |
ansond | 0:31292d956e92 | 23 | #define __ETHERNET_STUBS_H__ |
ansond | 0:31292d956e92 | 24 | |
ansond | 0:31292d956e92 | 25 | // mbed support |
ansond | 0:31292d956e92 | 26 | #include "mbed.h" |
ansond | 0:31292d956e92 | 27 | |
ansond | 0:31292d956e92 | 28 | // NSP support |
ansond | 0:31292d956e92 | 29 | #include "nsdl_support.h" |
ansond | 0:31292d956e92 | 30 | |
ansond | 0:31292d956e92 | 31 | // Ethernet Interface |
ansond | 0:31292d956e92 | 32 | #include "EthernetInterface.h" |
ansond | 0:31292d956e92 | 33 | extern EthernetInterface ethernet; |
ansond | 0:31292d956e92 | 34 | |
ansond | 1:cb681dfa1678 | 35 | // configure the endpoint |
ansond | 1:cb681dfa1678 | 36 | extern void configure_endpoint(); |
ansond | 1:cb681dfa1678 | 37 | |
ansond | 0:31292d956e92 | 38 | // we have to redefine DBG as its used differently here... |
ansond | 0:31292d956e92 | 39 | #ifdef DBG |
ansond | 0:31292d956e92 | 40 | #undef DBG |
ansond | 0:31292d956e92 | 41 | #endif |
ansond | 0:31292d956e92 | 42 | #define DBG printf |
ansond | 0:31292d956e92 | 43 | |
ansond | 0:31292d956e92 | 44 | #endif // __ETHERNET_STUBS_H__ |