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 iM880A and the Demoboard Poti requires a connection 51 * between X5:11 - X5:18. 52 * Remove the original jumpers for that. 53 * On SKiM880B 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_2 63 64 #define RADIO_MOSI PA_7 65 #define RADIO_MISO PA_6 66 #define RADIO_SCLK PA_5 67 #define RADIO_NSS PB_0 68 69 #define RADIO_DIO_0 PB_1 70 #define RADIO_DIO_1 PB_10 71 #define RADIO_DIO_2 PB_11 72 #define RADIO_DIO_3 PB_7 73 #define RADIO_DIO_4 PB_5 74 #define RADIO_DIO_5 PB_4 75 76 #define RADIO_ANT_SWITCH_RX PC_13 77 #define RADIO_ANT_SWITCH_TX PA_4 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 USB_DM PA_11 86 #define USB_DP PA_12 87 88 #define JTAG_TMS PA_13 89 #define JTAG_TCK PA_14 90 #define JTAG_TDI PA_15 91 #define JTAG_TDO PB_3 92 #define JTAG_NRST PB_4 93 94 #define I2C_SCL PB_8 95 #define I2C_SDA PB_9 96 97 #define UART_TX PA_9 98 #define UART_RX PA_10 99 100 #if ( USE_POTENTIOMETER == 1 ) 101 #define POTI PA_3 102 #else 103 #define LED_1 PA_3 104 #endif 105 #define LED_2 PA_0 106 #define LED_3 PA_1 107 #define LED_4 PA_8 108 109 // Debug pins definition. 110 #define RADIO_DBG_PIN_TX NC 111 #define RADIO_DBG_PIN_RX NC 112 113 #ifdef __cplusplus 114 } 115 #endif 116 117 #endif // __BOARD_CONFIG_H__ 118