tile_config.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /**
  2. * NOTICE
  3. *
  4. * Copyright 2020 Tile Inc. All Rights Reserved.
  5. * All code or other information included in the accompanying files ("Tile Source Material")
  6. * is PROPRIETARY information of Tile Inc. ("Tile") and access and use of the Tile Source Material
  7. * is subject to these terms. The Tile Source Material may only be used for demonstration purposes,
  8. * and may not be otherwise distributed or made available to others, including for commercial purposes.
  9. * Without limiting the foregoing , you understand and agree that no production use
  10. * of the Tile Source Material is allowed without a Tile ID properly obtained under a separate
  11. * agreement with Tile.
  12. * You also understand and agree that Tile may terminate the limited rights granted under these terms
  13. * at any time in its discretion.
  14. * All Tile Source Material is provided AS-IS without warranty of any kind.
  15. * Tile does not warrant that the Tile Source Material will be error-free or fit for your purposes.
  16. * Tile will not be liable for any damages resulting from your use of or inability to use
  17. * the Tile Source Material.
  18. *
  19. * Support: firmware_support@tile.com
  20. */
  21. /** @file tile_config.h
  22. ** @brief Configuration for Tile functionality
  23. */
  24. #ifndef TILE_CONFIG_H_
  25. #define TILE_CONFIG_H_
  26. /* You need valid Tile Node Credentials [interim_tile_id, interim_tile_key] in order to access Tile Network.
  27. * Without valid Tile Node credentials, your prototype will not interoperate with the Tile Network or Tile Mobile Application.
  28. * Follow this link to get Tile Node credentials for your prototype: https://www.thetileapp.com/en-us/platform-business-solutions
  29. * Then fill interim_tile_id and interim_tile_key with the numbers provided to you by Tile and comment out the warning.
  30. */
  31. #define INTERIM_TILE_ID {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  32. #define INTERIM_AUTH_KEY {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  33. #if !defined(INTERIM_TILE_ID) && !defined(INTERIM_AUTH_KEY)
  34. #warning Did you get your Tile Node credentials from Tile?
  35. #endif // !defined(INTERIM_TILE_ID) && !defined(INTERIM_AUTH_KEY)
  36. /* Model Number Format shall follow the following pattern: "XXXX YY.YY" with the following constraints:
  37. * - "XXXX" uses 4 ASCII letters ('A' to 'Z') to describe the Vendor ID.
  38. * - The Vendor ID is assigned by Tile. Contact firmware_support@tile.com if you don't have one (required before Mass Production).
  39. * - A space character after "XXXX".
  40. * - "YY.YY" uses 4 ASCII numbers ('0' to '9') and describes the Model ID.
  41. * Example: "TEST 00.00".
  42. */
  43. #define TILE_MODEL_NUMBER "TEST 02.00"
  44. /* HW Version character pattern is "YY.YY" and uses 4 ASCII numbers ('0' to '9').
  45. * Example: "01.00".
  46. * You are free to use any number that is convenient for your product, providing it satisfies the character pattern.
  47. */
  48. #define TILE_HARDWARE_VERSION "00.01"
  49. /* Firmware Version format shall follow the following pattern: "AA.BB.CC.D"
  50. * - "AA" Firmware Compatibility Number. For a given number, all Firmware binaries are considered compatible.
  51. * This means the CPU is the same and the HW is compatible.
  52. * - "BB" TileLib Version. For a given version, TileLib API compatibility is maintained.
  53. * - "CC" Build Version. This number is incremented for each build.
  54. * - "D" Reserved
  55. */
  56. #define TILE_FIRMWARE_VERSION "01.04.00.0"
  57. #define TILE_DEFAULT_MODE TILE_MODE_SHIPPING
  58. #define TILE_ENABLE_PLAYER 1
  59. /* Button used for reverse ring. */
  60. /* Also for wakeup when in shipping mode, if sleep is implemented (not implemented in example project) */
  61. #define TILE_BUTTON BUTTON_2
  62. /**
  63. * @brief Number of TOA channels supported
  64. */
  65. #define NUM_TOA_CHANNELS 3
  66. /**
  67. * @brief Diagnostic Version
  68. */
  69. #define DIAGNOSTIC_VERSION 80
  70. #define DEFAULT_TDT_CONFIG (tdt_config_t) { \
  71. .Delay = 45, \
  72. .EN_DT = true, \
  73. .EN_STI = true, \
  74. .SE_DTF = true, \
  75. .SE_DTS = true, \
  76. .FS_Strength = 1, \
  77. .SS_Strength = 1, \
  78. }
  79. /**
  80. * @brief Size of the TOA message buffer
  81. */
  82. #define TOA_QUEUE_BUFFER_SIZE (100 + 40 * (NUM_TOA_CHANNELS - 1))
  83. #endif