📄 os_config.h
字号:
/*********************************************************************************************************
** Mini OS
** The Real-Time Kernel For Avr Atmega8/16 CPU
**
** (c) Copyright 2004-2004, wanghong
** All Rights Reserved
**
** V1.20
**
**
** Filename: os_config.h
** Created by: wanghong
** Date: 2004.09.05
** Description: configuration header file of Mini OS for Avr Atmega8/16 CPU
**
**------------------------------------------------------------------------------------------------------
** Modified by:
** Date:
** Description:
**
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
#ifndef _OS_CONFIG_
#define _OS_CONFIG_
#define OS_PRIORITY_EN 0 // task has priority: 0 ~ MAX_TASK_N-1
#define OS_MSG_PRIORITY_EN 0 // your application may call os_send_message_front() to send a message has priority
#define OS_CPU_HOOKS_EN 0 // user functions enable bit
#define OS_TASK_STAT_EN 0 // statistics task enable bit
#define OS_STK_CHK_EN 0 // os stack check enable bit
#define OS_MAX_TASK_N 8 // max task number
#define OS_LOWEST_PRIO (OS_MAX_TASK_N-1) // the lowest priority that can be assigned
#define OS_MAX_MSG_N 1 // max message number
#define OS_TICKS_PER_SEC 250 /* 4ms for 4Mhz */ // set the number of ticks in one second
#define OS_TICK_TIMER_VALUE 0xFA // timer counter
#define OS_STACK_TOP 0x35f // top of stack area
#define OS_STACK_BOTTOM 0x45f // botton of the stack, stack growth down
#define OS_STACK_TOTAL_SZ (OS_STACK_BOTTOM-OS_STACK_TOP)
#define OS_MSG_MEM_TYP
#define CPU_IDLE_CODE() // user idle code
extern const unsigned char os_max_task_n; // max task number
extern const unsigned char os_max_msg_n; // max message number
extern const unsigned char os_priority_en; // task priority enable switch(task0: highest)
extern const unsigned int os_stack_bottom; // bottom of stack area
extern const unsigned int os_stack_top; // top of the stack, stack growth down
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -