edqw

Dependencies:   XBeeLib mbed

Fork of TESTSENDIO by Lysregulering

Committer:
andreasbirkeland97
Date:
Fri Feb 16 17:09:39 2018 +0000
Revision:
1:d752dab97a81
Parent:
0:8142893960b0
zdv

Who changed what in which revision?

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