| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- #ifndef __ZOS_CONFIG_H__
- #define __ZOS_CONFIG_H__
- #define __ZEUSOS__
- #define VENDOR_USING_QS100
- #define BSP_USING_FLASH_LEN 16
- #define BSP_USING_FLASH_BLOCK_SIZE 4
- #define BSP_USING_FLASH_WRITE_GRAN 8
- #define ZOS_TICK_PER_SECOND 1000
- /* On-chip Peripheral Drivers */
- /* hardware */
- #define BSP_USING_CONSOLE
- #define BSP_CONSOLE_DEVICE_NAME "uart0"
- #define BSP_CONSOLE_DEVICE_BAUD 115200
- #define BSP_CONSOLE_DEVICE_RECV_BUFFER_SIZE 128
- #define BSP_USING_PIN
- #define BSP_USING_UART
- #define BSP_USING_UART0
- #define BSP_USING_UART1
- #define BSP_USING_UART2
- #define BSP_USING_I2C
- #define BSP_USING_I2C0
- #define BSP_USING_SPI
- #define BSP_USING_SPI0
- #define BSP_USING_PWM
- #define BSP_USING_PWM0
- #define BSP_USING_PWM0_PIN 13
- #define BSP_USING_PM
- #define BSP_USING_PM_DTIMER
- #define BSP_USING_RTC
- #define BSP_USING_RTC_ALARM
- #define BSP_USING_FLASH
- #define BSP_USING_ADC
- #define BSP_USING_ADC0
- #define BSP_USING_MO
- /* end of hardware */
- /* end of On-chip Peripheral Drivers */
- /* drivers */
- /* end of drivers */
- /* kernel */
- #define ZOS_NAME_MAX_15
- #define ZOS_NAME_MAX 15
- /* Inter-task communication and synchronization */
- #define ZOS_USING_MUTEX
- #define ZOS_USING_SEMAPHORE
- #define ZOS_USING_EVENT
- #define ZOS_USING_MESSAGEQUEUE
- /* end of Inter-task communication and synchronization */
- #define ZOS_USING_DLOG
- #define ZOS_DLOG_BUF_SIZE 1024
- #define ZOS_DLOG_ENABLE_COLOR
- #define PKG_VSNPRINTF_SUPPORT_DECIMAL_SPECIFIERS
- #define PKG_VSNPRINTF_SUPPORT_EXPONENTIAL_SPECIFIERS
- #define PKG_VSNPRINTF_SUPPORT_WRITEBACK_SPECIFIER
- #define PKG_VSNPRINTF_SUPPORT_LONG_LONG
- #define PKG_VSNPRINTF_CHECK_FOR_NUL_IN_FORMAT_SPECIFIER
- #define PKG_VSNPRINTF_INTEGER_BUFFER_SIZE 32
- #define PKG_VSNPRINTF_DECIMAL_BUFFER_SIZE 32
- #define PKG_VSNPRINTF_DEFAULT_FLOAT_PRECISION 6
- #define PKG_VSNPRINTF_MAX_INTEGRAL_DIGITS_FOR_DECIMAL 9
- #define PKG_VSNPRINTF_LOG10_TAYLOR_TERMS 4
- #define ZOS_USING_KERNEL_DEBUG
- #define KLOG_GLOBAL_LEVEL_WARNING
- #define KLOG_GLOBAL_LEVEL 1
- #define KLOG_USING_COLOR
- #define KLOG_WITH_FUNC_LINE
- /* end of kernel */
- /* components */
- /* AI */
- /* end of AI */
- /* Cloud */
- /* end of Cloud */
- /* File system */
- #define PKG_USING_FAL
- #define FAL_DEBUG_CONFIG
- #define FAL_DEBUG 1
- #define FAL_PART_HAS_TABLE_CFG
- #define ZOS_USING_VFS
- #define VFS_MOUNTPOINT_MAX 4
- #define VFS_FILESYSTEM_TYPES_MAX 4
- #define VFS_FD_MAX 16
- #define ZOS_USING_AUTO_MOUNT
- #define ZOS_USING_VFS_LFS
- /* Little filesystem module */
- #define LFS_NAME_MAX 255
- #define LFS_FILE_MAX 512
- #define LFS_LOOKAHEAD_SIZE 8
- #define LFS_THREADSAFE
- /* end of Little filesystem module */
- #define ZOS_USING_VFS_SHELL_CMD
- /* end of File system */
- /* GUI */
- /* end of GUI */
- /* IoT */
- /* end of IoT */
- /* Language */
- #define PKG_USING_CJSON
- /* end of Language */
- /* C standard library adapter */
- #define ZOS_USING_LIBC_ADAPTER
- #define ZOS_USING_NEWLIB_ADAPTER
- #define ZOS_USING_ARMCCLIB_ADAPTER
- /* end of C standard library adapter */
- /* security */
- #define PKG_USING_ZOS_CRYPTO
- /* mbedtls */
- #define SECURITY_USING_MBEDTLS
- #define MBEDTLS_SSL_MAX_CONTENT_LEN 16384
- #define MBEDTLS_HAVE_TIME
- #define MBEDTLS_SSL_PROTO_DTLS
- #define MBEDTLS_SSL_DTLS_ANTI_REPLAY
- #define MBEDTLS_SSL_DTLS_HELLO_VERIFY
- /* end of mbedtls */
- /* end of security */
- /* utils */
- /* Shell */
- #define ZOS_USING_SHELL
- #define SHELL_TASK_NAME "shell"
- #define SHELL_TASK_PRIORITY 13
- #define SHELL_TASK_STACK_SIZE 2048
- #define SHELL_USING_HISTORY
- #define SHELL_HISTORY_LINES 5
- #define SHELL_USING_DESCRIPTION
- #define SHELL_CMD_SIZE 80
- #define SHELL_PROMPT_SIZE 256
- #define SHELL_ARG_MAX 10
- /* end of Shell */
- /* end of utils */
- /* end of components */
- /* SDK DEMO Config */
- /* end of SDK DEMO Config */
- /* QS-100 DEMO Config */
- /* end of QS-100 DEMO Config */
- /* Cloud platform configuration */
- /* end of Cloud platform configuration */
- #endif /* __ZOS_CONFIG_H__ */
|