observe fixes
Dependencies: nsdl_lib Nanostack_lib
Fork of mbedEndpointNetwork by
network_stubs/network_stubs.h@0:2a5a48a8b4d4, 2015-02-01 (annotated)
- Committer:
- ansond
- Date:
- Sun Feb 01 18:26:13 2015 +0000
- Revision:
- 0:2a5a48a8b4d4
revamped
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ansond | 0:2a5a48a8b4d4 | 1 | /** |
ansond | 0:2a5a48a8b4d4 | 2 | * @file network_stubs.h |
ansond | 0:2a5a48a8b4d4 | 3 | * @brief mbed Endpoint Network Stubs header (6LowPAN) |
ansond | 0:2a5a48a8b4d4 | 4 | * @author Doug Anson |
ansond | 0:2a5a48a8b4d4 | 5 | * @version 1.0 |
ansond | 0:2a5a48a8b4d4 | 6 | * @see |
ansond | 0:2a5a48a8b4d4 | 7 | * |
ansond | 0:2a5a48a8b4d4 | 8 | * Copyright (c) 2014 |
ansond | 0:2a5a48a8b4d4 | 9 | * |
ansond | 0:2a5a48a8b4d4 | 10 | * Licensed under the Apache License, Version 2.0 (the "License"); |
ansond | 0:2a5a48a8b4d4 | 11 | * you may not use this file except in compliance with the License. |
ansond | 0:2a5a48a8b4d4 | 12 | * You may obtain a copy of the License at |
ansond | 0:2a5a48a8b4d4 | 13 | * |
ansond | 0:2a5a48a8b4d4 | 14 | * http://www.apache.org/licenses/LICENSE-2.0 |
ansond | 0:2a5a48a8b4d4 | 15 | * |
ansond | 0:2a5a48a8b4d4 | 16 | * Unless required by applicable law or agreed to in writing, software |
ansond | 0:2a5a48a8b4d4 | 17 | * distributed under the License is distributed on an "AS IS" BASIS, |
ansond | 0:2a5a48a8b4d4 | 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
ansond | 0:2a5a48a8b4d4 | 19 | * See the License for the specific language governing permissions and |
ansond | 0:2a5a48a8b4d4 | 20 | * limitations under the License. |
ansond | 0:2a5a48a8b4d4 | 21 | */ |
ansond | 0:2a5a48a8b4d4 | 22 | |
ansond | 0:2a5a48a8b4d4 | 23 | #ifndef __MESH_STUBS_H__ |
ansond | 0:2a5a48a8b4d4 | 24 | #define __MESH_STUBS_H__ |
ansond | 0:2a5a48a8b4d4 | 25 | |
ansond | 0:2a5a48a8b4d4 | 26 | // mbed support |
ansond | 0:2a5a48a8b4d4 | 27 | #include "mbed.h" |
ansond | 0:2a5a48a8b4d4 | 28 | |
ansond | 0:2a5a48a8b4d4 | 29 | // we have to redefine DBG as its used differently here... |
ansond | 0:2a5a48a8b4d4 | 30 | #ifdef DBG |
ansond | 0:2a5a48a8b4d4 | 31 | #undef DBG |
ansond | 0:2a5a48a8b4d4 | 32 | #endif |
ansond | 0:2a5a48a8b4d4 | 33 | #define DBG printf |
ansond | 0:2a5a48a8b4d4 | 34 | |
ansond | 0:2a5a48a8b4d4 | 35 | // Nanostack_6LowPAN support... |
ansond | 0:2a5a48a8b4d4 | 36 | #include "configuration.h" |
ansond | 0:2a5a48a8b4d4 | 37 | #include "debug.h" |
ansond | 0:2a5a48a8b4d4 | 38 | #include "ns_6lowpan_support.h" |
ansond | 0:2a5a48a8b4d4 | 39 | #include "nsdl_support.h" |
ansond | 0:2a5a48a8b4d4 | 40 | |
ansond | 0:2a5a48a8b4d4 | 41 | // tasklet function typedef |
ansond | 0:2a5a48a8b4d4 | 42 | typedef void (*mbed_tasklet_main_fn)(void); |
ansond | 0:2a5a48a8b4d4 | 43 | |
ansond | 0:2a5a48a8b4d4 | 44 | // ties into Nanostack_6LowPAN network support |
ansond | 0:2a5a48a8b4d4 | 45 | extern "C" void event_dispatch(void); |
ansond | 0:2a5a48a8b4d4 | 46 | extern void init_network(bool canActAsRouterNode); |
ansond | 0:2a5a48a8b4d4 | 47 | |
ansond | 0:2a5a48a8b4d4 | 48 | #endif // __MESH_STUBS_H__ |