MBED code for Xbee unit running on chase car

Dependencies:   XBeeLib mbed

Fork of XBee802_Receive_Data by Digi International Inc.

Committer:
hbujanda
Date:
Wed Apr 29 17:58:10 2015 +0200
Revision:
0:155647ac203f
Child:
1:bf4296cf56cb
Automatic upload

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hbujanda 0:155647ac203f 1
hbujanda 0:155647ac203f 2 #if !defined(__CONFIG_H_)
hbujanda 0:155647ac203f 3 #define __CONFIG_H_
hbujanda 0:155647ac203f 4
hbujanda 0:155647ac203f 5 //#define PATFORM_ARCHPRO
hbujanda 0:155647ac203f 6
hbujanda 0:155647ac203f 7 /** Library configuration options */
hbujanda 0:155647ac203f 8 #define ENABLE_LOGGING
hbujanda 0:155647ac203f 9 #define ENABLE_ASSERTIONS
hbujanda 0:155647ac203f 10 #define FRAME_BUFFER_SIZE 4
hbujanda 0:155647ac203f 11 #define MAX_FRAME_PAYLOAD_LEN 128
hbujanda 0:155647ac203f 12 #define ENABLE_PM_SUPPORT
hbujanda 0:155647ac203f 13
hbujanda 0:155647ac203f 14 #define SYNC_OPS_TIMEOUT_MS 2000
hbujanda 0:155647ac203f 15 #define REM_SYNC_OPS_TIMEOUT_MS 3000
hbujanda 0:155647ac203f 16
hbujanda 0:155647ac203f 17 #if defined(PATFORM_ARCHPRO)
hbujanda 0:155647ac203f 18 #define RADIO_TX P4_28
hbujanda 0:155647ac203f 19 #define RADIO_RX P4_29
hbujanda 0:155647ac203f 20 #define RADIO_RESET NC
hbujanda 0:155647ac203f 21 //#define RADIO_RESET NC
hbujanda 0:155647ac203f 22 #define RADIO_SLEEP_REQ NC
hbujanda 0:155647ac203f 23 #define RADIO_ON_SLEEP NC
hbujanda 0:155647ac203f 24 #define DEBUG_TX P0_2
hbujanda 0:155647ac203f 25 #define DEBUG_RX P0_3
hbujanda 0:155647ac203f 26 #elif defined(TARGET_LPC1768)
hbujanda 0:155647ac203f 27 #define RADIO_TX p9
hbujanda 0:155647ac203f 28 #define RADIO_RX p10
hbujanda 0:155647ac203f 29 #define RADIO_RESET p30
hbujanda 0:155647ac203f 30 #define RADIO_SLEEP_REQ NC
hbujanda 0:155647ac203f 31 #define RADIO_ON_SLEEP NC
hbujanda 0:155647ac203f 32 #define DEBUG_TX P0_2
hbujanda 0:155647ac203f 33 #define DEBUG_RX P0_3
hbujanda 0:155647ac203f 34 #elif defined(TARGET_FRDM_KL25)
hbujanda 0:155647ac203f 35 #define RADIO_TX PTD3
hbujanda 0:155647ac203f 36 #define RADIO_RX PTD2
hbujanda 0:155647ac203f 37 #define RADIO_RESET NC
hbujanda 0:155647ac203f 38 #define RADIO_SLEEP_REQ NC
hbujanda 0:155647ac203f 39 #define RADIO_ON_SLEEP NC
hbujanda 0:155647ac203f 40 #define DEBUG_TX USBTX
hbujanda 0:155647ac203f 41 #define DEBUG_RX USBRX
hbujanda 0:155647ac203f 42 #elif (defined TARGET_LPC11U24)
hbujanda 0:155647ac203f 43 #define RADIO_TX p9
hbujanda 0:155647ac203f 44 #define RADIO_RX p10
hbujanda 0:155647ac203f 45 #define RADIO_RESET p30
hbujanda 0:155647ac203f 46 #define RADIO_SLEEP_REQ NC
hbujanda 0:155647ac203f 47 #define RADIO_ON_SLEEP NC
hbujanda 0:155647ac203f 48 #define DEBUG_TX USBTX
hbujanda 0:155647ac203f 49 #define DEBUG_RX USBRX
hbujanda 0:155647ac203f 50 #else
hbujanda 0:155647ac203f 51 #error "Define a platform"
hbujanda 0:155647ac203f 52 #endif
hbujanda 0:155647ac203f 53
hbujanda 0:155647ac203f 54 #endif /* __CONFIG_H_ */
hbujanda 0:155647ac203f 55