Config.infra 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. config PLATFORM_HAS_STDINT
  2. bool "PLATFORM_HAS_STDINT"
  3. default y
  4. help
  5. Tell if you have <stdint.h> when build image for target board
  6. Switching to "n" leads to SDK use self-defined data-type in src/infra/infra_types.h
  7. config PLATFORM_HAS_DYNMEM
  8. bool "PLATFORM_HAS_DYNMEM"
  9. default y
  10. help
  11. Tell if you have malloc() and free() style capability on target board via HAL_Malloc() and HAL_Free()
  12. Switching to "y" leads to SDK invoking HAL_Malloc() and HAL_Free() so runtime memory is dynamic
  13. Switching to "n" leads to SDK use global static array instead of heap so process capability is more limited
  14. config PLATFORM_HAS_OS
  15. bool "PLATFORM_HAS_OS"
  16. default n
  17. help
  18. Tell if you have Operation System on target board
  19. Switching to "y" leads to SDK invoking HAL_Mutex_Lock() / HAL_Semaphore_Wait() etc
  20. Switching to "n" leads to SDK avoid using mutex and semaphore, and avoid using multi-task as well
  21. config INFRA_STRING
  22. bool
  23. default n
  24. config INFRA_NET
  25. bool
  26. default n
  27. config INFRA_LIST
  28. bool
  29. default n
  30. config INFRA_LOG_NETWORK_PAYLOAD
  31. bool "FEATURE_INFRA_NETWORK_PAYLOAD"
  32. default y if MQTT_COMM_ENABLED || COAP_COMM_ENABLED || HTTP_COMM_ENABLED || DEVICE_MODEL_ENABLED
  33. help
  34. Parse and print JSON format upstream and downstream network packet payload when SDK communicates with cloud
  35. config INFRA_LOG
  36. bool "FEATURE_INFRA_LOG"
  37. default y
  38. select INFRA_LOG_ALL_MUTED if (INFRA_LOG_MUTE_FLW && INFRA_LOG_MUTE_DBG && INFRA_LOG_MUTE_INF && INFRA_LOG_MUTE_WRN && INFRA_LOG_MUTE_ERR && INFRA_LOG_MUTE_CRT)
  39. help
  40. Control SDK print formatted log but all levels are muted by default, enable them in sub-menu of "Log Configurations"
  41. menu "Log Configurations"
  42. depends on INFRA_LOG
  43. config INFRA_LOG_ALL_MUTED
  44. bool
  45. default n
  46. config INFRA_LOG_MUTE_FLW
  47. bool "MUTE LEVEL of FLOW (6)"
  48. default y
  49. config INFRA_LOG_MUTE_DBG
  50. bool "MUTE LEVEL of DEBUG (5)"
  51. default y
  52. config INFRA_LOG_MUTE_INF
  53. bool "MUTE LEVEL of INFO (4)"
  54. default y
  55. config INFRA_LOG_MUTE_WRN
  56. bool "MUTE LEVEL of WARN (3)"
  57. default y
  58. config INFRA_LOG_MUTE_ERR
  59. bool "MUTE LEVEL of ERROR (2)"
  60. default y
  61. config INFRA_LOG_MUTE_CRT
  62. bool "MUTE LEVEL of CRIT (1)"
  63. default y
  64. endmenu
  65. config INFRA_MEM_STATS
  66. bool
  67. default n
  68. config INFRA_TIMER
  69. bool
  70. default n
  71. config INFRA_RANDOM
  72. bool
  73. default n
  74. config INFRA_JSON_PARSER
  75. bool
  76. default n
  77. config INFRA_CJSON
  78. bool
  79. default n
  80. config INFRA_MD5
  81. bool
  82. default n
  83. config INFRA_SHA1
  84. bool
  85. default n
  86. config INFRA_SHA256
  87. bool
  88. default n
  89. config INFRA_REPORT
  90. bool
  91. default n
  92. select INFRA_STRING
  93. config INFRA_HTTPC
  94. bool
  95. default n
  96. select INFRA_NET
  97. select INFRA_TIMER
  98. config INFRA_MEM_STATS
  99. bool
  100. default n
  101. select INFRA_LIST
  102. config INFRA_COMPAT
  103. bool
  104. default n
  105. select HAL_KV if DYNAMIC_REGISTER
  106. config INFRA_CLASSIC
  107. bool
  108. default n
  109. config INFRA_PREAUTH
  110. bool
  111. default n
  112. config INFRA_AES
  113. bool
  114. default n