代码拉取完成,页面将自动刷新
同步操作将从 格维开源社区/AntOS 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/*------------------------------------------------------------------------
| FILE DESCRIPTION |
------------------------------------------------------------------------*/
/*------------------------------------------------------------------------
| - File name : os_config.h
| - Author : zevorn
| - Update date : 2021.05.07
| - Copyright(C) : 2021-2021 zevorn. All rights reserved.
------------------------------------------------------------------------*/
/*------------------------------------------------------------------------
| COPYRIGHT NOTICE |
------------------------------------------------------------------------*/
/*
* Copyright (C) 2021, zevorn ([email protected])
* This file is part of Ant Real Time Operating System.
* Ant Real Time Operating System is free software: you can redistribute
* it and/or modify it under the terms of the Apache-2.0 License.
* Ant Real Time Operating System is distributed in the hope that it will
* be useful,but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Apache-2.0 License License for more details.
* You should have received a copy of the Apache-2.0 License.Ant Real Time
* Operating System. If not, see <http://www.apache.org/licenses/>.
**/
/*------------------------------------------------------------------------
| CONFIG |
------------------------------------------------------------------------*/
#ifndef __OS_CONFIG_H_
#define __OS_CONFIG_H_
#include "STC8Hx_REG.h"
/**
* @brief The kernel stack size, the maximum allowed is 256 byte
* The thread stack cannot exceed this size
**/
#define OS_KERNEL_STK_SIZE (128)
/**
* @brief The idle thread stack size, the maximum allowable
* OS_KERNEL_STK_SIZE bytes
**/
#define OS_IDLE_THREAD_STK_SIZE (64)
/**
* @brief The size of the system memory pool the maximum cannot exceed the size of XRAM
* @note The smallest unit of the memory pool is a memory block,
* which consists of a message header + memory,
* and the message header occupies 5 bytes.
* Suppose you have applied for 10 bytes of memory,
* which actually occupies 15 bytes, remember.
**/
#define OS_MEM_POOL_SIZE (256*2)
/**
* @brief The number of threads can be up to 31.
* @note If the software timer is enabled, there are only 30.
**/
#define OS_THREAD_MAX_NUM (3)
/**
* @brief Software timer switch, write 1 to open, write 0 to close.
**/
#define OS_SOFT_TIMER_CTRL (0)
/*------------------------------------------------------------------------
| END OF FLIE. (C) COPYRIGHT zevorn |
------------------------------------------------------------------------*/
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。