1 /*! 2 * \file board-config.h 3 * 4 * \brief Board configuration 5 * 6 * \copyright Revised BSD License, see section \ref LICENSE. 7 * 8 * \code 9 * ______ _ 10 * / _____) _ | | 11 * ( (____ _____ ____ _| |_ _____ ____| |__ 12 * \____ \| ___ | (_ _) ___ |/ ___) _ \ 13 * _____) ) ____| | | || |_| ____( (___| | | | 14 * (______/|_____)_|_|_| \__)_____)\____)_| |_| 15 * (C)2013-2017 Semtech 16 * 17 * ___ _____ _ ___ _ _____ ___ ___ ___ ___ 18 * / __|_ _/_\ / __| |/ / __/ _ \| _ \/ __| __| 19 * \__ \ | |/ _ \ (__| ' <| _| (_) | / (__| _| 20 * |___/ |_/_/ \_\___|_|\_\_| \___/|_|_\\___|___| 21 * embedded.connectivity.solutions=============== 22 * 23 * \endcode 24 * 25 * \author Miguel Luis ( Semtech ) 26 * 27 * \author Gregory Cristian ( Semtech ) 28 * 29 * \author Daniel Jaeckle ( STACKFORCE ) 30 * 31 * \author Johannes Bruder ( STACKFORCE ) 32 */ 33 #ifndef __BOARD_CONFIG_H__ 34 #define __BOARD_CONFIG_H__ 35 36 #ifdef __cplusplus 37 extern "C" 38 { 39 #endif 40 41 /*! 42 * Defines the time required for the TCXO to wakeup [ms]. 43 */ 44 #define BOARD_TCXO_WAKEUP_TIME 0 45 46 /*! 47 * Enables the choice between Led1 and Potentiometer. 48 * LED1 and Potentiometer are exclusive. 49 * \remark When using Potentiometer don't forget that the connection between 50 * ADC input pin of iM881A-XL and the Demoboard Poti requires a connection 51 * between X5:11 - X5:18. 52 * Remove the original jumpers for that. 53 * On SKiM881AXL X5 is the 20 pin header close to the DIP SW and Buttons 54 */ 55 #define USE_POTENTIOMETER 1 56 57 58 /*! 59 * Board MCU pins definitions 60 */ 61 62 #define RADIO_RESET PA_5 63 64 #define RADIO_MOSI PB_15 65 #define RADIO_MISO PB_14 66 #define RADIO_SCLK PB_13 67 #define RADIO_NSS PB_12 68 69 #define RADIO_DIO_0 PA_6 70 #define RADIO_DIO_1 PA_7 71 #define RADIO_DIO_2 PB_0 72 #define RADIO_DIO_3 PB_2 73 #define RADIO_DIO_4 PB_1 74 #define RADIO_DIO_5 PB_10 75 76 #define RADIO_ANT_SWITCH_RX PA_4 77 #define RADIO_ANT_SWITCH_TX PA_2 78 79 #define OSC_LSE_IN PC_14 80 #define OSC_LSE_OUT PC_15 81 82 #define OSC_HSE_IN PH_0 83 #define OSC_HSE_OUT PH_1 84 85 #define SWCLK PA_14 86 #define SWDAT PA_13 87 88 89 #define UART_TX PA_9 90 #define UART_RX PA_10 91 92 #if ( USE_POTENTIOMETER == 1 ) 93 #define POTI PA_3 94 #else 95 #define LED_1 PA_3 96 #endif 97 #define LED_2 PC_13 98 #define LED_3 PA_0 99 #define LED_4 PB_8 100 101 // Debug pins definition. 102 #define RADIO_DBG_PIN_TX NC 103 #define RADIO_DBG_PIN_RX NC 104 105 #ifdef __cplusplus 106 } 107 #endif 108 109 #endif // __BOARD_CONFIG_H__ 110