⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 includes.h

📁 ucosII 2.84版源码
💻 H
字号:
/*
*********************************************************************************************************
*                                                uC/OS-II
*                                          The Real-Time Kernel
*
*                        (c) Copyright 1992-1998, Jean J. Labrosse, Plantation, FL
*                                           All Rights Reserved
*
*                                           MASTER INCLUDE FILE
*********************************************************************************************************
*/
#ifndef _INCLUDES_UCOS_
#define _INCLUDES_UCOS_

#pragma import(__use_no_semihosting_swi)

#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <rt_sys.h>
#include "os_cpu.h"
#include "os_cfg.h"
#include "ucos_ii.h"

#ifdef      EX3_GLOBALS
#define     EX3_EXT
#else
#define     EX3_EXT  extern
#endif

/*
*********************************************************************************************************
*                                             DATA TYPES
*********************************************************************************************************
*/

typedef struct {
    char    TaskName[30];
    INT16U  TaskCtr;
    INT16U  TaskExecTime;
    INT32U  TaskTotExecTime;
} TASK_USER_DATA;

/*
*********************************************************************************************************
*                                              VARIABLES
*********************************************************************************************************
*/

EX3_EXT  TASK_USER_DATA  TaskUserData[10];

/*
*********************************************************************************************************
*                                         FUNCTION PROTOTYPES
*********************************************************************************************************
*/

void DispTaskStat(INT8U id);


struct __FILE { int handle;   /* Add whatever you need here */};

typedef unsigned char  uchar;
typedef signed   short ushort;
typedef unsigned int   uint;

#define TRUE		1
#define FALSE		0

#include "globalConfig.h"

#include "44b.h"
#include "misc.h"
#include "led.h"
#include "buzzer.h"
#include "keyboard.h"
#include "uart.h"
#include "gprs.h"
#include "lcd.h"
#include "target.h"


extern volatile unsigned int uiTimer5Counter;//defined in misc.c


#define OS_TASK_START_PRIO		61
//#define OS_TASK_NULL			60
#define OS_TASK_LED_GREEN_PRIO	59
#define OS_TASK_LED_RED_PRIO	58
#define OS_TASK_LCD_PRIO		57
#define OS_TASK_KEYBOARD_PRIO	56
//#define OS_TASK_NULL			55
//#define OS_TASK_NULL			54
//#define OS_TASK_NULL			53
//#define OS_TASK_NULL			52
//#define OS_TASK_NULL			51
//#define OS_TASK_NULL			50
//#define OS_TASK_NULL			49
//#define OS_TASK_NULL			48
//#define OS_TASK_NULL			47
//#define OS_TASK_NULL			46
//#define OS_TASK_NULL			45
//#define OS_TASK_NULL			44
//#define OS_TASK_NULL			43
#define OS_TASK_KEYBUF_PRIO		42

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -