zos_config.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. #ifndef __ZOS_CONFIG_H__
  2. #define __ZOS_CONFIG_H__
  3. #define __ZEUSOS__
  4. #define VENDOR_USING_QS100
  5. #define BSP_USING_FLASH_LEN 16
  6. #define BSP_USING_FLASH_BLOCK_SIZE 4
  7. #define BSP_USING_FLASH_WRITE_GRAN 8
  8. #define ZOS_TICK_PER_SECOND 1000
  9. /* On-chip Peripheral Drivers */
  10. /* hardware */
  11. #define BSP_USING_CONSOLE
  12. #define BSP_CONSOLE_DEVICE_NAME "uart0"
  13. #define BSP_CONSOLE_DEVICE_BAUD 115200
  14. #define BSP_CONSOLE_DEVICE_RECV_BUFFER_SIZE 128
  15. #define BSP_USING_PIN
  16. #define BSP_USING_UART
  17. #define BSP_USING_UART0
  18. #define BSP_USING_UART1
  19. #define BSP_USING_UART2
  20. #define BSP_USING_I2C
  21. #define BSP_USING_I2C0
  22. #define BSP_USING_SPI
  23. #define BSP_USING_SPI0
  24. #define BSP_USING_PWM
  25. #define BSP_USING_PWM0
  26. #define BSP_USING_PWM0_PIN 13
  27. #define BSP_USING_PM
  28. #define BSP_USING_PM_DTIMER
  29. #define BSP_USING_RTC
  30. #define BSP_USING_RTC_ALARM
  31. #define BSP_USING_FLASH
  32. #define BSP_USING_ADC
  33. #define BSP_USING_ADC0
  34. #define BSP_USING_MO
  35. /* end of hardware */
  36. /* end of On-chip Peripheral Drivers */
  37. /* drivers */
  38. /* end of drivers */
  39. /* kernel */
  40. #define ZOS_NAME_MAX_15
  41. #define ZOS_NAME_MAX 15
  42. /* Inter-task communication and synchronization */
  43. #define ZOS_USING_MUTEX
  44. #define ZOS_USING_SEMAPHORE
  45. #define ZOS_USING_EVENT
  46. #define ZOS_USING_MESSAGEQUEUE
  47. /* end of Inter-task communication and synchronization */
  48. #define ZOS_USING_DLOG
  49. #define ZOS_DLOG_BUF_SIZE 1024
  50. #define ZOS_DLOG_ENABLE_COLOR
  51. #define PKG_VSNPRINTF_SUPPORT_DECIMAL_SPECIFIERS
  52. #define PKG_VSNPRINTF_SUPPORT_EXPONENTIAL_SPECIFIERS
  53. #define PKG_VSNPRINTF_SUPPORT_WRITEBACK_SPECIFIER
  54. #define PKG_VSNPRINTF_SUPPORT_LONG_LONG
  55. #define PKG_VSNPRINTF_CHECK_FOR_NUL_IN_FORMAT_SPECIFIER
  56. #define PKG_VSNPRINTF_INTEGER_BUFFER_SIZE 32
  57. #define PKG_VSNPRINTF_DECIMAL_BUFFER_SIZE 32
  58. #define PKG_VSNPRINTF_DEFAULT_FLOAT_PRECISION 6
  59. #define PKG_VSNPRINTF_MAX_INTEGRAL_DIGITS_FOR_DECIMAL 9
  60. #define PKG_VSNPRINTF_LOG10_TAYLOR_TERMS 4
  61. #define ZOS_USING_KERNEL_DEBUG
  62. #define KLOG_GLOBAL_LEVEL_WARNING
  63. #define KLOG_GLOBAL_LEVEL 1
  64. #define KLOG_USING_COLOR
  65. #define KLOG_WITH_FUNC_LINE
  66. /* end of kernel */
  67. /* components */
  68. /* AI */
  69. /* end of AI */
  70. /* Cloud */
  71. /* end of Cloud */
  72. /* File system */
  73. #define PKG_USING_FAL
  74. #define FAL_DEBUG_CONFIG
  75. #define FAL_DEBUG 1
  76. #define FAL_PART_HAS_TABLE_CFG
  77. #define ZOS_USING_VFS
  78. #define VFS_MOUNTPOINT_MAX 4
  79. #define VFS_FILESYSTEM_TYPES_MAX 4
  80. #define VFS_FD_MAX 16
  81. #define ZOS_USING_AUTO_MOUNT
  82. #define ZOS_USING_VFS_LFS
  83. /* Little filesystem module */
  84. #define LFS_NAME_MAX 255
  85. #define LFS_FILE_MAX 512
  86. #define LFS_LOOKAHEAD_SIZE 8
  87. #define LFS_THREADSAFE
  88. /* end of Little filesystem module */
  89. #define ZOS_USING_VFS_SHELL_CMD
  90. /* end of File system */
  91. /* GUI */
  92. /* end of GUI */
  93. /* IoT */
  94. /* end of IoT */
  95. /* Language */
  96. #define PKG_USING_CJSON
  97. /* end of Language */
  98. /* C standard library adapter */
  99. #define ZOS_USING_LIBC_ADAPTER
  100. #define ZOS_USING_NEWLIB_ADAPTER
  101. #define ZOS_USING_ARMCCLIB_ADAPTER
  102. /* end of C standard library adapter */
  103. /* security */
  104. #define PKG_USING_ZOS_CRYPTO
  105. /* mbedtls */
  106. #define SECURITY_USING_MBEDTLS
  107. #define MBEDTLS_SSL_MAX_CONTENT_LEN 16384
  108. #define MBEDTLS_HAVE_TIME
  109. #define MBEDTLS_SSL_PROTO_DTLS
  110. #define MBEDTLS_SSL_DTLS_ANTI_REPLAY
  111. #define MBEDTLS_SSL_DTLS_HELLO_VERIFY
  112. /* end of mbedtls */
  113. /* end of security */
  114. /* utils */
  115. /* Shell */
  116. #define ZOS_USING_SHELL
  117. #define SHELL_TASK_NAME "shell"
  118. #define SHELL_TASK_PRIORITY 13
  119. #define SHELL_TASK_STACK_SIZE 2048
  120. #define SHELL_USING_HISTORY
  121. #define SHELL_HISTORY_LINES 5
  122. #define SHELL_USING_DESCRIPTION
  123. #define SHELL_CMD_SIZE 80
  124. #define SHELL_PROMPT_SIZE 256
  125. #define SHELL_ARG_MAX 10
  126. /* end of Shell */
  127. /* end of utils */
  128. /* end of components */
  129. /* SDK DEMO Config */
  130. /* end of SDK DEMO Config */
  131. /* QS-100 DEMO Config */
  132. /* end of QS-100 DEMO Config */
  133. /* Cloud platform configuration */
  134. /* end of Cloud platform configuration */
  135. #endif /* __ZOS_CONFIG_H__ */