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.
 
 
 
 
 
 

97 lines
2.9 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. #ifndef __BOARD_CONFIG_H__
  34. #define __BOARD_CONFIG_H__
  35. #ifdef __cplusplus
  36. extern "C"
  37. {
  38. #endif
  39. /*!
  40. * Defines the time required for the TCXO to wakeup [ms].
  41. */
  42. #if defined( SX1262MBXDAS )
  43. #define BOARD_TCXO_WAKEUP_TIME 5
  44. #else
  45. #define BOARD_TCXO_WAKEUP_TIME 0
  46. #endif
  47. /*!
  48. * Board MCU pins definitions
  49. */
  50. #define RADIO_RESET PA_3
  51. #define RADIO_MOSI PA_7
  52. #define RADIO_MISO PA_6
  53. #define RADIO_SCLK PA_5
  54. #define RADIO_NSS PA_4
  55. #define RADIO_DIO_0 PB_11
  56. #define RADIO_DIO_1 PB_10
  57. #define RADIO_DIO_2 PB_1
  58. #define RADIO_DIO_3 PB_0
  59. #define RADIO_DIO_4 NC
  60. #define RADIO_DIO_5 NC
  61. #define RADIO_ANT_SWITCH NC
  62. #define LED_1 NC
  63. #define LED_2 NC
  64. // Debug pins definition.
  65. #define RADIO_DBG_PIN_TX NC
  66. #define RADIO_DBG_PIN_RX NC
  67. #define OSC_LSE_IN PC_14
  68. #define OSC_LSE_OUT PC_15
  69. #define OSC_HSE_IN PH_0
  70. #define OSC_HSE_OUT PH_1
  71. #define SWCLK PA_14
  72. #define SWDAT PA_13
  73. #define I2C_SCL NC
  74. #define I2C_SDA NC
  75. #define UART_TX NC
  76. #define UART_RX NC
  77. #ifdef __cplusplus
  78. }
  79. #endif
  80. #endif // __BOARD_CONFIG_H__