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                      5
45 
46 /*!
47  * Board MCU pins definitions
48  */
49 #define RADIO_RESET                                 PC_0
50 
51 #define RADIO_MOSI                                  PA_7
52 #define RADIO_MISO                                  PA_6
53 #define RADIO_SCLK                                  PB_3
54 
55 #define RADIO_NSS                                   PA_15
56 
57 #define RADIO_DIO_0                                 PB_4
58 #define RADIO_DIO_1                                 PB_1
59 #define RADIO_DIO_2                                 PB_0
60 #define RADIO_DIO_3                                 PC_13
61 #define RADIO_DIO_4                                 PA_5
62 #define RADIO_DIO_5                                 PA_4
63 
64 #define RADIO_TCXO_POWER                            PA_12
65 
66 #define RADIO_ANT_SWITCH_RX                         PA_1
67 #define RADIO_ANT_SWITCH_TX_BOOST                   PC_1
68 #define RADIO_ANT_SWITCH_TX_RFO                     PC_2
69 
70 #define LED_1                                       PB_5
71 #define LED_2                                       PA_5
72 #define LED_3                                       PB_6
73 #define LED_4                                       PB_7
74 
75 #define LED_GREEN                                   LED_1
76 #define LED_RED1                                    LED_2
77 #define LED_BLUE                                    LED_3
78 #define LED_RED2                                    LED_4
79 
80 #define BTN_1                                       PB_2
81 
82 #define OSC_LSE_IN                                  PC_14
83 #define OSC_LSE_OUT                                 PC_15
84 
85 #define OSC_HSE_IN                                  PH_0
86 #define OSC_HSE_OUT                                 PH_1
87 
88 #define SWCLK                                       PA_14
89 #define SWDAT                                       PA_13
90 
91 #define I2C_SCL                                     PB_8
92 #define I2C_SDA                                     PB_9
93 
94 #define UART_TX                                     PA_2
95 #define UART_RX                                     PA_3
96 
97 // Debug pins definition.
98 #define RADIO_DBG_PIN_TX                            PB_13
99 #define RADIO_DBG_PIN_RX                            PB_14
100 
101 #ifdef __cplusplus
102 }
103 #endif
104 
105 #endif // __BOARD_CONFIG_H__
106