platform.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * THE FOLLOWING FIRMWARE IS PROVIDED: (1) "AS IS" WITH NO WARRANTY; AND
  3. * (2)TO ENABLE ACCESS TO CODING INFORMATION TO GUIDE AND FACILITATE CUSTOMER.
  4. * CONSEQUENTLY, SEMTECH SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR
  5. * CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT
  6. * OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION
  7. * CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  8. *
  9. * Copyright (C) SEMTECH S.A.
  10. */
  11. /*!
  12. * \file platform.h
  13. * \brief
  14. *
  15. * \version 1.0
  16. * \date Nov 21 2012
  17. * \author Miguel Luis
  18. */
  19. #ifndef __PLATFORM_H__
  20. #define __PLATFORM_H__
  21. #ifndef __GNUC__
  22. #define inline
  23. #endif
  24. /*!
  25. * Platform definition
  26. */
  27. #define Bleeper 3
  28. #define SX1243ska 2
  29. #define SX12xxEiger 1
  30. #define SX12000DVK 0
  31. /*!
  32. * Platform choice. Please uncoment the PLATFORM define and choose your platform
  33. * or add/change the PLATFORM definition on the compiler Defines option
  34. */
  35. #define PLATFORM SX12xxEiger
  36. #if( PLATFORM == SX12xxEiger )
  37. /*!
  38. * Radio choice. Please uncomment the wanted radio and comment the others
  39. * or add/change wanted radio definition on the compiler Defines option
  40. */
  41. //#define USE_SX1232_RADIO
  42. //#define USE_SX1272_RADIO
  43. #define USE_SX1276_RADIO
  44. //#define USE_SX1243_RADIO
  45. /*!
  46. * Module choice. There are three existing module with the SX1276.
  47. * Please set the connected module to the value 1 and set the others to 0
  48. */
  49. #ifdef USE_SX1276_RADIO
  50. #define MODULE_SX1276RF1IAS 0
  51. #define MODULE_SX1276RF1JAS 0
  52. #define MODULE_SX1276RF1KAS 1
  53. #endif
  54. #include "sx12xxEiger.h"
  55. #define USE_UART 0
  56. #elif( PLATFORM == SX12000DVK )
  57. /*!
  58. * Radio choice. Please uncomment the wanted radio and comment the others
  59. * or add/change wanted radio definition on the compiler Defines option
  60. */
  61. //#define USE_SX1232_RADIO
  62. //#define USE_SX1272_RADIO
  63. #define USE_SX1276_RADIO
  64. //#define USE_SX1243_RADIO
  65. // #include "sx1200dvk/sx1200dvk.h"
  66. #elif( PLATFORM == SX1243ska )
  67. #elif( PLATFORM == Bleeper )
  68. #define USE_SX1272_RADIO
  69. #include "bleeper/bleeper.h"
  70. #define USE_UART 0
  71. #else
  72. #error "Missing define: Platform (ie. SX12xxEiger)"
  73. #endif
  74. #endif // __PLATFORM_H__