初始化版本

This commit is contained in:
冯佳
2026-02-09 10:27:21 +08:00
commit 64d767932f
4467 changed files with 2486822 additions and 0 deletions

View File

@ -0,0 +1,34 @@
#ifndef __OSAL_CONFIG_H__
#define __OSAL_CONFIG_H__
/* Enable/Disable OSAL modules */
#define OSAL_USING_THREAD 1
#define OSAL_USING_SEMAPHORE 1
#define OSAL_USING_MUTEX 1
#define OSAL_USING_EVENT 1
#define OSAL_USING_MESSAGEQUEUE 1
#define OSAL_USING_TIMER 1
#define OSAL_USING_HEAP 1
#define OSAL_USING_LOG 1
/* Log Levels */
#define OSAL_LOG_LEVEL_NONE 0
#define OSAL_LOG_LEVEL_ERROR 1
#define OSAL_LOG_LEVEL_WARN 2
#define OSAL_LOG_LEVEL_INFO 3
#define OSAL_LOG_LEVEL_DEBUG 4
/* Current Log Level */
#ifndef OSAL_LOG_LEVEL
#define OSAL_LOG_LEVEL OSAL_LOG_LEVEL_DEBUG
#endif
/* Log Buffer Size */
#ifndef OSAL_LOG_BUF_SIZE
#define OSAL_LOG_BUF_SIZE 256
#endif
/* Assert */
#define OSAL_USING_ASSERT 1
#endif /* __OSAL_CONFIG_H__ */