Projet S5 info - Beginner version

Dependencies:   XBeeLib mbed-rtos mbed

Fork of Projet by Vincent Belanger

Committer:
vinbel93
Date:
Thu Apr 14 14:41:18 2016 +0000
Revision:
10:0491ac57ac77
Parent:
5:9505aed3788c
Final Beginner Version

Who changed what in which revision?

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