初始化版本
This commit is contained in:
34
osal/include/osal_config.h
Normal file
34
osal/include/osal_config.h
Normal 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__ */
|
||||
Reference in New Issue
Block a user