📄 includes.h
字号:
/*
*********************************************************************************************************
* uC/OS-II
* The Real-Time Kernel
*
* (c) Copyright 1992-1998, Jean J. Labrosse, Plantation, FL
* All Rights Reserved
*
* MASTER INCLUDE FILE
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* Keil C port.
* By: John X. Liu (johnxliu@163.com)
*********************************************************************************************************
*/
#ifndef _UC51__INCLUDES__
#define _UC51__INCLUDES__
#include <c8051f020.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
/* These macros are intended to be used to re-declare the uC/OS-II functions to be reentrant */
#define KCREENTRANT large reentrant
#include "c51port\\os_cpu.h"
#include "os_cfg.h"
#include "ucos_ii.h"
#define USER_STACK_SIZE 200
#define SYS_FREQUENCE 11059200 //Hz 赫兹
#define SYS_TICK_TIME 25 //Ms 毫秒
#define SYS_TIMER_RELOAD (65536-SYS_TICK_TIME*SYS_FREQUENCE/24000)
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -