f8wConfig.cfg 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. /*
  2. * f8wConfig.cfg
  3. *
  4. * Compiler command-line options used to define a TI Z-Stack
  5. * ZigBee device. To move an option from here to the project
  6. * file, comment out or delete the option from this file and
  7. * enter it into the "Define Symbols" box under the Preprocessor
  8. * tab of the C/C++ Compiler Project Options. New user defined
  9. * options may be added to this file, as necessary.
  10. *
  11. * Each macro is prefixed with '-D'. The entries are to be constructed
  12. * as if they are to be on the compiler command line invocation (which
  13. * they are).
  14. *
  15. * NOTE: The RHS must be quoted if there are embedded blanks. See
  16. * DEFAULT_KEY for an example.
  17. */
  18. /* Set to 0 for no security, otherwise non-0 */
  19. -DSECURE=0
  20. -DZG_SECURE_DYNAMIC=0
  21. /* Enable the Reflector */
  22. -DREFLECTOR
  23. /* Default channel is Channel 11 - 0x0B */
  24. // Channels are defined in the following:
  25. // 0 : 868 MHz 0x00000001
  26. // 1 - 10 : 915 MHz 0x000007FE
  27. // 11 - 26 : 2.4 GHz 0x07FFF800
  28. //
  29. //-DMAX_CHANNELS_868MHZ 0x00000001
  30. //-DMAX_CHANNELS_915MHZ 0x000007FE
  31. //-DMAX_CHANNELS_24GHZ 0x07FFF800
  32. //-DDEFAULT_CHANLIST=0x04000000 // 26 - 0x1A
  33. //-DDEFAULT_CHANLIST=0x02000000 // 25 - 0x19
  34. //-DDEFAULT_CHANLIST=0x01000000 // 24 - 0x18
  35. //-DDEFAULT_CHANLIST=0x00800000 // 23 - 0x17
  36. //-DDEFAULT_CHANLIST=0x00400000 // 22 - 0x16
  37. //-DDEFAULT_CHANLIST=0x00200000 // 21 - 0x15
  38. //-DDEFAULT_CHANLIST=0x00100000 // 20 - 0x14
  39. //-DDEFAULT_CHANLIST=0x00080000 // 19 - 0x13
  40. //-DDEFAULT_CHANLIST=0x00040000 // 18 - 0x12
  41. //-DDEFAULT_CHANLIST=0x00020000 // 17 - 0x11
  42. //-DDEFAULT_CHANLIST=0x00010000 // 16 - 0x10
  43. //-DDEFAULT_CHANLIST=0x00008000 // 15 - 0x0F
  44. //-DDEFAULT_CHANLIST=0x00004000 // 14 - 0x0E
  45. //-DDEFAULT_CHANLIST=0x00002000 // 13 - 0x0D
  46. //-DDEFAULT_CHANLIST=0x00001000 // 12 - 0x0C
  47. -DDEFAULT_CHANLIST=0x00000800 // 11 - 0x0B
  48. /* Define the default PAN ID.
  49. *
  50. * Setting this to a value other than 0xFFFF causes
  51. * ZDO_COORD to use this value as its PAN ID and
  52. * Routers and end devices to join PAN with this ID
  53. */
  54. -DZDAPP_CONFIG_PAN_ID=0xFFF1
  55. /* Minimum number of milliseconds to hold off the start of the device
  56. * in the network and the minimum delay between joining cycles.
  57. */
  58. -DNWK_START_DELAY=100
  59. /* Mask for the random joining delay. This value is masked with
  60. * the return from osal_rand() to get a random delay time for
  61. * each joining cycle. This random value is added to NWK_START_DELAY.
  62. * For example, a value of 0x007F will be a joining delay of 0 to 127
  63. * milliseconds.
  64. */
  65. -DEXTENDED_JOINING_RANDOM_MASK=0x007F
  66. /* Minimum number of milliseconds to delay between each beacon request
  67. * in a joining cycle.
  68. */
  69. -DBEACON_REQUEST_DELAY=100
  70. /* Mask for the random beacon request delay. This value is masked with
  71. * the return from osal_rand() to get a random delay time for
  72. * each joining cycle. This random value is added to DBEACON_REQUEST_DELAY.
  73. * For example, a value of 0x00FF will be a beacon request delay of 0 to 255
  74. * milliseconds.
  75. */
  76. -DBEACON_REQ_DELAY_MASK=0x00FF
  77. /* in seconds; set to 0 to turn off route expiry */
  78. -DROUTE_EXPIRY_TIME=30
  79. /* This number is used by polled devices, since the spec'd formula
  80. * doesn't work for sleeping end devices. For non-polled devices,
  81. * a formula is used. Value is in 2 milliseconds periods
  82. */
  83. -DAPSC_ACK_WAIT_DURATION_POLLED=3000
  84. /* Default indirect message holding timeout value:
  85. * 1-65535 (0 -> 65536) X CNT_RTG_TIMER X RTG_TIMER_INTERVAL
  86. */
  87. -DNWK_INDIRECT_MSG_TIMEOUT=7
  88. /* The number of simultaneous route discoveries in network */
  89. -DMAX_RREQ_ENTRIES=8
  90. /* The maximum number of retries allowed after a transmission failure */
  91. -DAPSC_MAX_FRAME_RETRIES=3
  92. /* Max number of times retry looking for the next hop address of a message */
  93. -DNWK_MAX_DATA_RETRIES=2
  94. /* Number of times retry to poll parent before indicating loss of synchronization
  95. * with parent. Note that larger value will cause longer delay for the child to
  96. * rejoin the network.
  97. */
  98. -DMAX_POLL_FAILURE_RETRIES=2
  99. /* The number of items in the broadcast table */
  100. -DMAX_BCAST=9
  101. /* The maximum number of groups in the groups table */
  102. -DAPS_MAX_GROUPS=16
  103. /* Number of entries in the regular routing table plus additional
  104. * entries for route repair
  105. */
  106. -DMAX_RTG_ENTRIES=40
  107. /* Maximum number of entries in the Binding table. */
  108. -DNWK_MAX_BINDING_ENTRIES=4
  109. /* Maximum number of cluster IDs for each binding table entry. */
  110. -DMAX_BINDING_CLUSTER_IDS=4
  111. /* Default security key. */
  112. -DDEFAULT_KEY="{0x01, 0x03, 0x05, 0x07, 0x09, 0x0B, 0x0D, 0x0F, 0x00, 0x02, 0x04, 0x06, 0x08, 0x0A, 0x0C, 0x0D}"
  113. /* Reset when ASSERT occurs, otherwise flash LEDs */
  114. //-DASSERT_RESET
  115. /* Set the MAC MAX Frame Size (802.15.4 default is 102) */
  116. -DMAC_MAX_FRAME_SIZE=116
  117. /* Compiler keywords */
  118. -DCONST="const __code"
  119. -DGENERIC=__generic
  120. /****************************************
  121. * The following are for End Devices only
  122. ***************************************/
  123. -DRFD_RCVC_ALWAYS_ON=FALSE
  124. /* The number of milliseconds to wait between data request polls to the coordinator. */
  125. -DPOLL_RATE=1000
  126. /* This is used after receiving a data indication to poll immediately
  127. * for queued messages...in milliseconds.
  128. */
  129. -DQUEUED_POLL_RATE=100
  130. /* This is used after receiving a data confirmation to poll immediately
  131. * for response messages...in milliseconds
  132. */
  133. -DRESPONSE_POLL_RATE=100
  134. /* This is used as an alternate response poll rate only for rejoin request.
  135. * This rate is determined by the response time of the parent that the device
  136. * is trying to join.
  137. */
  138. -DREJOIN_POLL_RATE=440