📄 os_check.h
字号:
/******************************************************************************
Copyright (c) 2006 by RockOS.
All rights reserved.
This software is supported by the Rock Software Workroom.
Any bugs please contact the author with e-mail or QQ:
E-mail : baobaoba520@yahoo.com.cn
QQ : 59681888
*******************************************************************************
File name : os_check.h
Description : checking all macro constants' dependant by compiler.
:
:
Auther : sunxinqiu
History :
2006-3-15 first release.
******************************************************************************/
#ifndef __OSCFG_H__
#define __OSCFG_H__
#ifdef __cplusplus
extern "C" {
#endif
#if TICKS_PER_SECOND < 1
#error TICKS_PER_SECOND must not less than 1, pls change it oscfg.h!!!
#endif
#if MAX_NAME_LEN < 20
#undef MAX_NAME_LEN
#define MAX_NAME_LEN 20
#endif
#if MEM_BLOCK_SIZE < 128
#undef MEM_BLOCK_SIZE
#define MEM_BLOCK_SIZE 128
#endif
#if MAX_FSM_NUM < 1
#undef MAX_FSM_NUM
#define MAX_FSM_NUM 1
#endif
#if MAX_SHELL_CMD > 0
#if MAX_SYS_TASK < 3
#undef MAX_SYS_TASK
#define MAX_SYS_TASK 3
#endif
#else
#if MAX_SYS_TASK < 2
#undef MAX_SYS_TASK
#define MAX_SYS_TASK 2
#endif
#endif
#if MAX_SYS_SEMA < 2
#undef MAX_SYS_SEMA
#define MAX_SYS_SEMA 2
#undef DEFAULT_MUTEX_Q_SIZE
#define DEFAULT_MUTEX_Q_SIZE 2
#else
#if DEFAULT_MUTEX_Q_SIZE < 4
#undef DEFAULT_MUTEX_Q_SIZE
#define DEFAULT_MUTEX_Q_SIZE 4
#elif DEFAULT_MUTEX_Q_SIZE > MAX_SYS_SEMA
#undef DEFAULT_MUTEX_Q_SIZE
#define DEFAULT_MUTEX_Q_SIZE MAX_SYS_SEMA
#endif
#endif
#if COMMON_MSG_NUM == 0
#error COMMON_MSG_NUM must be not 0, pls change it in oscfg.h!!!
#endif
#if COMMON_MSG_LEN < 12
#error COMMON_MSG_NUM must be equal or more than 12, pls change it in oscfg.h!!!
#endif
#if MINI_MSG_NUM != 0
#if MINI_MSG_LEN > COMMON_MSG_LEN
#error MIN_MSG_LEN must be less than COMMON_MSG_LEN, pls change it in oscfg.h!!!
#endif
#endif
#if HUGE_MSG_NUM != 0
#if COMMON_MSG_LEN > HUGE_MSG_LEN
#error COMMON_MSG_LEN must be less than HUGE_MSG_LEN, pls change it in oscfg.h!!!
#endif
#endif
#if DEFAULT_MSG_Q_SIZE == 0
#undef DEFAULT_MSG_Q_SIZE
#define DEFAULT_MSG_Q_SIZE 32
#else
#if DEFAULT_MSG_Q_SIZE > MINI_MSG_NUM + COMMON_MSG_NUM + HUGE_MSG_NUM
#undef DEFAULT_MSG_Q_SIZE
#define DEFAULT_MSG_Q_SIZE (MINI_MSG_NUM + COMMON_MSG_NUM + HUGE_MSG_NUM)
#endif
#endif
#if DEFAULT_STACK_SIZE < 4096
#undef DEFAULT_STACK_SIZE
#define DEFAULT_STACK_SIZE 4096
#endif
#if MAX_SHELL_CMD != 0
#if MAX_SHELL_CMD < 16
#undef MAX_SHELL_CMD
#define MAX_SHELL_CMD 16
#elif MAX_SHELL_CMD > 2048
#undef MAX_SHELL_CMD
#define MAX_SHELL_CMD 2048
#endif
#if MAX_CMD_LINE_LEN < 64
#undef MAX_CMD_LINE_LEN
#define MAX_CMD_LINE_LEN 64
#elif MAX_CMD_LINE_LEN > 1023
#undef MAX_CMD_LINE_LEN
#define MAX_CMD_LINE_LEN 1023
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -