Files
ETH_TCP_Demo/osal/include/osal_config.h
2026-02-09 10:27:21 +08:00

35 lines
827 B
C

#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__ */