Easily add all supported connectivity methods to your mbed OS project

Dependencies:   type-yd-driver

Committer:
MACRUM
Date:
Wed Jul 12 10:52:58 2017 +0000
Revision:
0:615f90842ce8
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MACRUM 0:615f90842ce8 1 /*
MACRUM 0:615f90842ce8 2 * Copyright (c) 2012, Thingsquare, http://www.thingsquare.com/.
MACRUM 0:615f90842ce8 3 * All rights reserved.
MACRUM 0:615f90842ce8 4 *
MACRUM 0:615f90842ce8 5 * Redistribution and use in source and binary forms, with or without
MACRUM 0:615f90842ce8 6 * modification, are permitted provided that the following conditions
MACRUM 0:615f90842ce8 7 * are met:
MACRUM 0:615f90842ce8 8 * 1. Redistributions of source code must retain the above copyright
MACRUM 0:615f90842ce8 9 * notice, this list of conditions and the following disclaimer.
MACRUM 0:615f90842ce8 10 * 2. Redistributions in binary form must reproduce the above copyright
MACRUM 0:615f90842ce8 11 * notice, this list of conditions and the following disclaimer in the
MACRUM 0:615f90842ce8 12 * documentation and/or other materials provided with the distribution.
MACRUM 0:615f90842ce8 13 *
MACRUM 0:615f90842ce8 14 * 3. Neither the name of the copyright holder nor the names of its
MACRUM 0:615f90842ce8 15 * contributors may be used to endorse or promote products derived
MACRUM 0:615f90842ce8 16 * from this software without specific prior written permission.
MACRUM 0:615f90842ce8 17 *
MACRUM 0:615f90842ce8 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
MACRUM 0:615f90842ce8 19 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
MACRUM 0:615f90842ce8 20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
MACRUM 0:615f90842ce8 21 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
MACRUM 0:615f90842ce8 22 * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
MACRUM 0:615f90842ce8 23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
MACRUM 0:615f90842ce8 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
MACRUM 0:615f90842ce8 25 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
MACRUM 0:615f90842ce8 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
MACRUM 0:615f90842ce8 27 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
MACRUM 0:615f90842ce8 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
MACRUM 0:615f90842ce8 29 * OF THE POSSIBILITY OF SUCH DAMAGE.
MACRUM 0:615f90842ce8 30 *
MACRUM 0:615f90842ce8 31 */
MACRUM 0:615f90842ce8 32 #ifndef IP64_CONF_H
MACRUM 0:615f90842ce8 33 #define IP64_CONF_H
MACRUM 0:615f90842ce8 34
MACRUM 0:615f90842ce8 35 /*
MACRUM 0:615f90842ce8 36 #include "ip64-tap-driver.h"
MACRUM 0:615f90842ce8 37 #include "ip64-eth-interface.h"
MACRUM 0:615f90842ce8 38
MACRUM 0:615f90842ce8 39 #define IP64_CONF_UIP_FALLBACK_INTERFACE ip64_eth_interface
MACRUM 0:615f90842ce8 40 #define IP64_CONF_INPUT ip64_eth_interface_input
MACRUM 0:615f90842ce8 41
MACRUM 0:615f90842ce8 42 #define IP64_CONF_ETH_DRIVER ip64_tap_driver
MACRUM 0:615f90842ce8 43
MACRUM 0:615f90842ce8 44
MACRUM 0:615f90842ce8 45 #undef UIP_FALLBACK_INTERFACE
MACRUM 0:615f90842ce8 46 #define UIP_FALLBACK_INTERFACE ip64_uip_fallback_interface
MACRUM 0:615f90842ce8 47 */
MACRUM 0:615f90842ce8 48 #ifdef MY_DRIVERS
MACRUM 0:615f90842ce8 49 #include <my_wifi_interface.h>
MACRUM 0:615f90842ce8 50 #include <my_wifi_driver.h>
MACRUM 0:615f90842ce8 51
MACRUM 0:615f90842ce8 52 #define IP64_CONF_UIP_FALLBACK_INTERFACE_SLIP 0
MACRUM 0:615f90842ce8 53 #define IP64_CONF_UIP_FALLBACK_INTERFACE my_wifi_interface
MACRUM 0:615f90842ce8 54 #define IP64_CONF_INPUT my_wifi_interface_input
MACRUM 0:615f90842ce8 55 #define IP64_CONF_ETH_DRIVER my_wifi_driver
MACRUM 0:615f90842ce8 56
MACRUM 0:615f90842ce8 57 #undef UIP_CONF_ND6_RA_RDNSS
MACRUM 0:615f90842ce8 58 #define UIP_CONF_ND6_RA_RDNSS 1
MACRUM 0:615f90842ce8 59
MACRUM 0:615f90842ce8 60 #undef UIP_CONF_ND6_SEND_RA
MACRUM 0:615f90842ce8 61 #define UIP_CONF_ND6_SEND_RA 1
MACRUM 0:615f90842ce8 62
MACRUM 0:615f90842ce8 63 #undef UIP_CONF_ROUTER
MACRUM 0:615f90842ce8 64 #define UIP_CONF_ROUTER 1
MACRUM 0:615f90842ce8 65
MACRUM 0:615f90842ce8 66 #ifndef QUEUEBUF_CONF_NUM
MACRUM 0:615f90842ce8 67 #define QUEUEBUF_CONF_NUM 16
MACRUM 0:615f90842ce8 68 #endif
MACRUM 0:615f90842ce8 69
MACRUM 0:615f90842ce8 70
MACRUM 0:615f90842ce8 71 #else
MACRUM 0:615f90842ce8 72
MACRUM 0:615f90842ce8 73
MACRUM 0:615f90842ce8 74 #include "net/ip64/ip64-slip-interface.h"
MACRUM 0:615f90842ce8 75 #include "net/ip64/ip64-null-driver.h"
MACRUM 0:615f90842ce8 76
MACRUM 0:615f90842ce8 77 #define IP64_CONF_UIP_FALLBACK_INTERFACE_SLIP 1
MACRUM 0:615f90842ce8 78 #define IP64_CONF_UIP_FALLBACK_INTERFACE ip64_slip_interface
MACRUM 0:615f90842ce8 79 #define IP64_CONF_INPUT ip64_slip_interface_input
MACRUM 0:615f90842ce8 80 #define IP64_CONF_ETH_DRIVER ip64_null_driver
MACRUM 0:615f90842ce8 81
MACRUM 0:615f90842ce8 82 #undef UIP_CONF_ND6_RA_RDNSS
MACRUM 0:615f90842ce8 83 #define UIP_CONF_ND6_RA_RDNSS 1
MACRUM 0:615f90842ce8 84
MACRUM 0:615f90842ce8 85 #undef UIP_CONF_ND6_SEND_RA
MACRUM 0:615f90842ce8 86 #define UIP_CONF_ND6_SEND_RA 1
MACRUM 0:615f90842ce8 87
MACRUM 0:615f90842ce8 88 #undef UIP_CONF_ROUTER
MACRUM 0:615f90842ce8 89 #define UIP_CONF_ROUTER 1
MACRUM 0:615f90842ce8 90
MACRUM 0:615f90842ce8 91 #ifndef QUEUEBUF_CONF_NUM
MACRUM 0:615f90842ce8 92 #define QUEUEBUF_CONF_NUM 16
MACRUM 0:615f90842ce8 93 #endif
MACRUM 0:615f90842ce8 94
MACRUM 0:615f90842ce8 95 #endif//MY_DRIVERS
MACRUM 0:615f90842ce8 96
MACRUM 0:615f90842ce8 97 #endif /* IP64_CONF_H */