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 * \author Marten Lootsma(TWTG) on behalf of Microchip/Atmel (c)2017 34 */ 35 #ifndef __BOARD_CONFIG_H__ 36 #define __BOARD_CONFIG_H__ 37 38 #include <hal_gpio.h> 39 40 #ifdef __cplusplus 41 extern "C" 42 { 43 #endif 44 45 /*! 46 * Defines the time required for the TCXO to wakeup [ms]. 47 */ 48 #define BOARD_TCXO_WAKEUP_TIME 1 49 50 /*! 51 * Board MCU pins definitions 52 */ 53 54 #define RADIO_RESET GPIO( GPIO_PORTB, 15 ) 55 #define TCXO_PWR_PIN GPIO( GPIO_PORTA, 9 ) 56 #define RF_SWITCH_PIN GPIO( GPIO_PORTA, 13 ) 57 58 #define RADIO_MOSI GPIO( GPIO_PORTB, 30 ) 59 #define RADIO_MISO GPIO( GPIO_PORTC, 19 ) 60 #define RADIO_SCLK GPIO( GPIO_PORTC, 18 ) 61 #define RADIO_NSS GPIO( GPIO_PORTB, 31 ) 62 63 #define RADIO_DIO_0 GPIO( GPIO_PORTB, 16 ) 64 #define RADIO_DIO_1 GPIO( GPIO_PORTA, 11 ) 65 #define RADIO_DIO_2 GPIO( GPIO_PORTA, 12 ) 66 #define RADIO_DIO_3 GPIO( GPIO_PORTB, 17 ) 67 68 #define LED_1 GPIO( GPIO_PORTA, 19 ) 69 70 #define UART_TX GPIO( GPIO_PORTA, 4 ) 71 #define UART_RX GPIO( GPIO_PORTA, 5 ) 72 #define I2C_SDA GPIO( GPIO_PORTA, 16 ) 73 #define I2C_SCL GPIO( GPIO_PORTA, 17 ) 74 75 // Debug pins definition. 76 #define RADIO_DBG_PIN_TX NC 77 #define RADIO_DBG_PIN_RX NC 78 79 #ifdef __cplusplus 80 } 81 #endif 82 83 #endif // __BOARD_CONFIG_H__ 84