Implement a secure ICS protocol targeting LoRa Node151 microcontroller for controlling irrigation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

84 lines
2.7 KiB

  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. #include <hal_gpio.h>
  38. #ifdef __cplusplus
  39. extern "C"
  40. {
  41. #endif
  42. /*!
  43. * Defines the time required for the TCXO to wakeup [ms].
  44. */
  45. #define BOARD_TCXO_WAKEUP_TIME 1
  46. /*!
  47. * Board MCU pins definitions
  48. */
  49. #define RADIO_RESET GPIO( GPIO_PORTB, 15 )
  50. #define TCXO_PWR_PIN GPIO( GPIO_PORTA, 9 )
  51. #define RF_SWITCH_PIN GPIO( GPIO_PORTA, 13 )
  52. #define RADIO_MOSI GPIO( GPIO_PORTB, 30 )
  53. #define RADIO_MISO GPIO( GPIO_PORTC, 19 )
  54. #define RADIO_SCLK GPIO( GPIO_PORTC, 18 )
  55. #define RADIO_NSS GPIO( GPIO_PORTB, 31 )
  56. #define RADIO_DIO_0 GPIO( GPIO_PORTB, 16 )
  57. #define RADIO_DIO_1 GPIO( GPIO_PORTA, 11 )
  58. #define RADIO_DIO_2 GPIO( GPIO_PORTA, 12 )
  59. #define RADIO_DIO_3 GPIO( GPIO_PORTB, 17 )
  60. #define LED_1 GPIO( GPIO_PORTA, 19 )
  61. #define UART_TX GPIO( GPIO_PORTA, 4 )
  62. #define UART_RX GPIO( GPIO_PORTA, 5 )
  63. #define I2C_SDA GPIO( GPIO_PORTA, 16 )
  64. #define I2C_SCL GPIO( GPIO_PORTA, 17 )
  65. // Debug pins definition.
  66. #define RADIO_DBG_PIN_TX NC
  67. #define RADIO_DBG_PIN_RX NC
  68. #ifdef __cplusplus
  69. }
  70. #endif
  71. #endif // __BOARD_CONFIG_H__