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