You need to drink more water

Dependencies:   HX711 SeeedGrayOLED XBeeLib mbed

Committer:
jehoon
Date:
Wed Sep 23 04:07:27 2015 +0000
Revision:
0:6b3f26e7b431
you need to drink more water

Who changed what in which revision?

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