xbee gateway
Dependencies: NTPClient SDFileSystem WIZnetInterface XBeeLib mbed
config.h@0:4e6019c8c85f, 2015-09-23 (annotated)
- Committer:
- jehoon
- Date:
- Wed Sep 23 04:09:27 2015 +0000
- Revision:
- 0:4e6019c8c85f
my home gateway via xbee
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jehoon | 0:4e6019c8c85f | 1 | /** |
jehoon | 0:4e6019c8c85f | 2 | * Copyright (c) 2015 Digi International Inc., |
jehoon | 0:4e6019c8c85f | 3 | * All rights not expressly granted are reserved. |
jehoon | 0:4e6019c8c85f | 4 | * |
jehoon | 0:4e6019c8c85f | 5 | * This Source Code Form is subject to the terms of the Mozilla Public |
jehoon | 0:4e6019c8c85f | 6 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
jehoon | 0:4e6019c8c85f | 7 | * You can obtain one at http://mozilla.org/MPL/2.0/. |
jehoon | 0:4e6019c8c85f | 8 | * |
jehoon | 0:4e6019c8c85f | 9 | * Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343 |
jehoon | 0:4e6019c8c85f | 10 | * ======================================================================= |
jehoon | 0:4e6019c8c85f | 11 | */ |
jehoon | 0:4e6019c8c85f | 12 | |
jehoon | 0:4e6019c8c85f | 13 | #ifndef __CONFIG_H_ |
jehoon | 0:4e6019c8c85f | 14 | #define __CONFIG_H_ |
jehoon | 0:4e6019c8c85f | 15 | |
jehoon | 0:4e6019c8c85f | 16 | /** Library configuration options */// |
jehoon | 0:4e6019c8c85f | 17 | //#define ENABLE_LOGGING |
jehoon | 0:4e6019c8c85f | 18 | #define ENABLE_ASSERTIONS |
jehoon | 0:4e6019c8c85f | 19 | #define FRAME_BUFFER_SIZE 4 |
jehoon | 0:4e6019c8c85f | 20 | #define MAX_FRAME_PAYLOAD_LEN 128 |
jehoon | 0:4e6019c8c85f | 21 | |
jehoon | 0:4e6019c8c85f | 22 | #define SYNC_OPS_TIMEOUT_MS 2000 |
jehoon | 0:4e6019c8c85f | 23 | |
jehoon | 0:4e6019c8c85f | 24 | #define RADIO_TX D1 /* TODO: specify your setup's Serial TX pin connected to the XBee module DIN pin */ |
jehoon | 0:4e6019c8c85f | 25 | #define RADIO_RX D0 /* TODO: specify your setup's Serial RX pin connected to the XBee module DOUT pin */ |
jehoon | 0:4e6019c8c85f | 26 | //#define RADIO_RTS NC /* TODO: specify your setup's Serial RTS# pin connected to the XBee module RTS# pin */ |
jehoon | 0:4e6019c8c85f | 27 | //#define RADIO_CTS NC /* TODO: specify your setup's Serial CTS# pin connected to the XBee module CTS# pin */ |
jehoon | 0:4e6019c8c85f | 28 | #define RADIO_RESET D2 /* TODO: specify your setup's GPIO (output) connected to the XBee module's reset pin */ |
jehoon | 0:4e6019c8c85f | 29 | //#define RADIO_SLEEP_REQ NC /* TODO: specify your setup's GPIO (output) connected to the XBee module's SLEEP_RQ pin */ |
jehoon | 0:4e6019c8c85f | 30 | //#define RADIO_ON_SLEEP NC /* TODO: specify your setup's GPIO (input) connected to the XBee module's ON_SLEEP pin */ |
jehoon | 0:4e6019c8c85f | 31 | #define DEBUG_TX USBTX /* TODO: specify your setup's Serial TX for debugging */ |
jehoon | 0:4e6019c8c85f | 32 | #define DEBUG_RX USBRX /* TODO: specify your setup's Serial RX for debugging (optional) */ |
jehoon | 0:4e6019c8c85f | 33 | |
jehoon | 0:4e6019c8c85f | 34 | #if !defined(RADIO_TX) |
jehoon | 0:4e6019c8c85f | 35 | #error "Please define RADIO_TX pin" |
jehoon | 0:4e6019c8c85f | 36 | #endif |
jehoon | 0:4e6019c8c85f | 37 | |
jehoon | 0:4e6019c8c85f | 38 | #if !defined(RADIO_RX) |
jehoon | 0:4e6019c8c85f | 39 | #error "Please define RADIO_RX pin" |
jehoon | 0:4e6019c8c85f | 40 | #endif |
jehoon | 0:4e6019c8c85f | 41 | |
jehoon | 0:4e6019c8c85f | 42 | #if !defined(RADIO_RESET) |
jehoon | 0:4e6019c8c85f | 43 | #define RADIO_RESET NC |
jehoon | 0:4e6019c8c85f | 44 | #warning "RADIO_RESET not defined, defaulted to 'NC'" |
jehoon | 0:4e6019c8c85f | 45 | #endif |
jehoon | 0:4e6019c8c85f | 46 | |
jehoon | 0:4e6019c8c85f | 47 | #if defined(ENABLE_LOGGING) |
jehoon | 0:4e6019c8c85f | 48 | #if !defined(DEBUG_TX) |
jehoon | 0:4e6019c8c85f | 49 | #error "Please define DEBUG_TX" |
jehoon | 0:4e6019c8c85f | 50 | #endif |
jehoon | 0:4e6019c8c85f | 51 | #if !defined(DEBUG_RX) |
jehoon | 0:4e6019c8c85f | 52 | #define DEBUG_RX NC |
jehoon | 0:4e6019c8c85f | 53 | #warning "DEBUG_RX not defined, defaulted to 'NC'" |
jehoon | 0:4e6019c8c85f | 54 | #endif |
jehoon | 0:4e6019c8c85f | 55 | #endif |
jehoon | 0:4e6019c8c85f | 56 | |
jehoon | 0:4e6019c8c85f | 57 | #endif /* __CONFIG_H_ */ |