f8wConfig.cfg 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. /*
  2. * f8wConfig.cfg
  3. *
  4. * Compiler command-line options used to define a TI Z-Stack ZigBee device.
  5. * To move an option from here to the project file, comment out or delete the
  6. * option from this file and enter it into the "Define Symbols" box under the
  7. * Preprocessor tab of the C/C++ Compiler Project Options. New user defined
  8. * options may be added to this file, as necessary.
  9. *
  10. * Each macro is prefixed with '-D'. The entries are to be constructed as if
  11. * they are to be on the compiler command line invocation (which they are).
  12. *
  13. * NOTE: The RHS (Right-Hand-Side) must be quoted if there are embedded blanks.
  14. * See the DEFAULT_KEY definition for an example.
  15. */
  16. /* Enable ZigBee-Pro */
  17. -DZIGBEEPRO
  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 the
  71. * return from osal_rand() to get a random delay time for each joining cycle.
  72. * This random value is added to DBEACON_REQUEST_DELAY. For example, a value
  73. * of 0x00FF will be a beacon request delay of 0 to 255 milliseconds.
  74. */
  75. -DBEACON_REQ_DELAY_MASK=0x00FF
  76. /* Jitter mask for the link status report timer. This value is masked with the
  77. * return from osal_rand() to add a random delay to _NIB.nwkLinkStatusPeriod.
  78. * For example, a value of 0x007F allows a jitter between 0-127 milliseconds.
  79. */
  80. -DLINK_STATUS_JITTER_MASK=0x007F
  81. /* in seconds; set to 0 to turn off route expiry */
  82. -DROUTE_EXPIRY_TIME=30
  83. /* This number is used by polled devices, since the spec'd formula
  84. * doesn't work for sleeping end devices. For non-polled devices,
  85. * a formula is used. Value is in 2 milliseconds periods
  86. */
  87. -DAPSC_ACK_WAIT_DURATION_POLLED=3000
  88. /* Default indirect message holding timeout value:
  89. * 1-65535 (0 -> 65536) X CNT_RTG_TIMER X RTG_TIMER_INTERVAL
  90. */
  91. -DNWK_INDIRECT_MSG_TIMEOUT=7
  92. /* The number of simultaneous route discoveries in network */
  93. -DMAX_RREQ_ENTRIES=8
  94. /* The maximum number of retries allowed after a transmission failure */
  95. -DAPSC_MAX_FRAME_RETRIES=3
  96. /* Max number of times retry looking for the next hop address of a message */
  97. -DNWK_MAX_DATA_RETRIES=2
  98. /* Number of times retry to poll parent before indicating loss of synchronization
  99. * with parent. Note that larger value will cause longer delay for the child to
  100. * rejoin the network.
  101. */
  102. -DMAX_POLL_FAILURE_RETRIES=2
  103. /* The number of items in the broadcast table */
  104. -DMAX_BCAST=9
  105. /* The maximum number of groups in the groups table */
  106. -DAPS_MAX_GROUPS=16
  107. /* Number of entries in the regular routing table plus additional
  108. * entries for route repair
  109. */
  110. -DMAX_RTG_ENTRIES=40
  111. /* Maximum number of entries in the Binding table. */
  112. -DNWK_MAX_BINDING_ENTRIES=4
  113. /* Maximum number of cluster IDs for each binding table entry.
  114. * Note that any value other than the default value may cause a
  115. * compilation warning but Device Binding will function correctly.
  116. */
  117. -DMAX_BINDING_CLUSTER_IDS=4
  118. /* Default security key. */
  119. -DDEFAULT_KEY="{0x01, 0x03, 0x05, 0x07, 0x09, 0x0B, 0x0D, 0x0F, 0x00, 0x02, 0x04, 0x06, 0x08, 0x0A, 0x0C, 0x0D}"
  120. /* Reset when ASSERT occurs, otherwise flash LEDs */
  121. //-DASSERT_RESET
  122. /* Set the MAC MAX Frame Size (802.15.4 default is 102) */
  123. -DMAC_MAX_FRAME_SIZE=116
  124. /* Minimum transmissions attempted for Channel Interference detection,
  125. * Frequency Agility can be disabled by setting this parameter to zero.
  126. */
  127. -DZDNWKMGR_MIN_TRANSMISSIONS=20
  128. /* Compiler keywords */
  129. -DCONST="const __code"
  130. -DGENERIC=__generic
  131. /****************************************
  132. * The following are for End Devices only
  133. ***************************************/
  134. -DRFD_RCVC_ALWAYS_ON=FALSE
  135. /* The number of milliseconds to wait between data request polls to the coordinator. */
  136. -DPOLL_RATE=1000
  137. /* This is used after receiving a data indication to poll immediately
  138. * for queued messages...in milliseconds.
  139. */
  140. -DQUEUED_POLL_RATE=100
  141. /* This is used after receiving a data confirmation to poll immediately
  142. * for response messages...in milliseconds
  143. */
  144. -DRESPONSE_POLL_RATE=100
  145. /* This is used as an alternate response poll rate only for rejoin request.
  146. * This rate is determined by the response time of the parent that the device
  147. * is trying to join.
  148. */
  149. -DREJOIN_POLL_RATE=440