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 #if defined( SX1262MBXDAS ) 45 #define BOARD_TCXO_WAKEUP_TIME 5 46 #else 47 #define BOARD_TCXO_WAKEUP_TIME 0 48 #endif 49 50 /*! 51 * Board MCU pins definitions 52 */ 53 #define RADIO_RESET PA_0 54 55 #define RADIO_MOSI PA_7 56 #define RADIO_MISO PA_6 57 #define RADIO_SCLK PA_5 58 59 #if defined( SX1261MBXBAS ) || defined( SX1262MBXCAS ) || defined( SX1262MBXDAS ) 60 61 #define RADIO_NSS PA_8 62 #define RADIO_BUSY PB_3 63 #define RADIO_DIO_1 PB_4 64 65 #define RADIO_ANT_SWITCH_POWER PA_9 66 #define RADIO_FREQ_SEL PA_1 67 #define RADIO_XTAL_SEL PB_0 68 #define RADIO_DEVICE_SEL PA_4 69 70 #define LED_1 PC_1 71 #define LED_2 PC_0 72 73 // Debug pins definition. 74 #define RADIO_DBG_PIN_TX PB_6 75 #define RADIO_DBG_PIN_RX PC_7 76 77 #elif defined( LR1110MB1XXS ) 78 79 #define RADIO_NSS PA_8 80 #define RADIO_BUSY PB_3 81 #define RADIO_DIO_1 PB_4 82 83 #define LED_1 PC_1 84 #define LED_2 PC_0 85 86 // Debug pins definition. 87 #define RADIO_DBG_PIN_TX PB_6 88 #define RADIO_DBG_PIN_RX PC_7 89 90 #elif defined( SX1272MB2DAS) || defined( SX1276MB1LAS ) || defined( SX1276MB1MAS ) 91 92 #define RADIO_NSS PB_6 93 94 #define RADIO_DIO_0 PA_10 95 #define RADIO_DIO_1 PB_3 96 #define RADIO_DIO_2 PB_5 97 #define RADIO_DIO_3 PB_4 98 #define RADIO_DIO_4 PA_9 99 #define RADIO_DIO_5 PC_7 100 101 #define RADIO_ANT_SWITCH PC_1 102 103 #define LED_1 NC 104 #define LED_2 NC 105 106 // Debug pins definition. 107 #define RADIO_DBG_PIN_TX PB_0 108 #define RADIO_DBG_PIN_RX PA_4 109 110 #endif 111 112 #define OSC_LSE_IN PC_14 113 #define OSC_LSE_OUT PC_15 114 115 #define OSC_HSE_IN PH_0 116 #define OSC_HSE_OUT PH_1 117 118 #define SWCLK PA_14 119 #define SWDAT PA_13 120 121 #define I2C_SCL PB_8 122 #define I2C_SDA PB_9 123 124 #define UART_TX PA_2 125 #define UART_RX PA_3 126 127 #ifdef __cplusplus 128 } 129 #endif 130 131 #endif // __BOARD_CONFIG_H__ 132