📄 config.h
字号:
/*********************************************************************************************************
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
/********************************/
/* "以下为系统配置" */
/********************************/
#include "my_type.h"
#ifndef bool
#define bool uint8
#endif
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef DATA
#define DATA 1
#endif
#ifndef CMD
#define CMD 0
#endif
#ifndef __AVR_ATmega16__
#define __AVR_ATmega16__
#endif
#define AVR_GCC 1 /* 设置编译器 0为非GCC编译。1为GCC编译 */
#if AVR_GCC==1
#define C_PROGMEM PROGMEM
#else
#define C_PROGMEM /*nothing*/
#endif
#ifndef _CONFIG_H_
#define _CONFIG_H_
#include <inttypes.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <setjmp.h>
//#include <math.h>
#include <avr/io.h>
#include <avr/wdt.h>
#include <avr/sleep.h>
#include <avr/Interrupt.h>
#include <avr/pgmspace.h>
#include <util/delay.h>
#include <avr/eeprom.h>
#include <util/twi.h>
#include "twi.h"
#include "GUI_CONFIG.H"
#include "LCDDRIVE.H"
#include "GUI_BASIC.H"
//#include "GUI_STOCKC.H"
#include "FONT_MACRO.H"
#include "FONT5_7.H"
#include "FONT8_8.H"
//#include "FONT24_32.H"
//#include "LOADBIT.H"
#include "WINDOWS.H"
#include "MENU.H"
//#include "spline.h"
volatile uint8 Alarm;
#endif
/********************************/
/* "操作系统定义" */
/********************************/
#include "OS_CFG.H"
#include "OS_CPU.H"
#include "OS.H"
#include <uart.h>
/********************************/
/* "以下为程序配置" */
/********************************/
//任务定义
#ifdef IN_OS_CPU_C
extern void task0(void);
extern void task1(void);
extern void task2(void);
extern void task3(void);
void (* const TaskFuction[OS_MAX_TASKS])(void) =
{task0,task1,task2,task3};
//函数数组TaskFuction[]保存了各个任务初始PC指针,其按任务ID(既优先级次序)顺序保存
#endif
/**********************end****************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -