센서보드 RF IRQ 테스트 중

Fork of stm-spirit1-rf-driver by ST

Committer:
Wolfgang Betz
Date:
Fri Sep 01 08:51:04 2017 +0200
Revision:
75:8dc65c09af67
Parent:
34:edda6a7238ec
Clarification on radio configuration

Who changed what in which revision?

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