main.h
来自「基于ARM7下的2100系列得uc-osII的工程模板!」· C头文件 代码 · 共 70 行
H
70 行
/****************************************Copyright (c) ***************************************************
** Guangzhou ZHIYUAN electronics Co.,LTD.
**
** http://www.embedtools.com
**
**--File Info---------------------------------------------------------------------------------------------
** File name: main.h
** Last modified Date:
** Last Version: V1.0
** Descriptions:
**
**--------------------------------------------------------------------------------------------------------
** Created by:
** Created date:
** Version:
** Descriptions:
**
**--------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
** Version:
** Descriptions:
**
*********************************************************************************************************/
#ifndef __MAIN_H
#define __MAIN_H
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/*********************************************************************************************************
这一段无需改动
*********************************************************************************************************/
#include "config.h"
/*********************************************************************************************************
在这里添加用户宏定义
*********************************************************************************************************/
#define BUZZER (1u << 7)
#define BUZZER_Set() IO0DIR |= (BUZZER),IO0CLR |= (BUZZER)
#define BUZZER_Clr() IO0SET |= (BUZZER)
/*********************************************************************************************************
** Function name: DefIRQ_Exception
** Descriptions: 默认中断服务程序
** input parameters: none
** output parameters: none
** Returned value: none
*********************************************************************************************************/
void DefIRQ_Exception(void);
/*********************************************************************************************************
** Function name: FIQ_Exception
** Descriptions: FIQ中断服务程序
** input parameters: none
** output parameters: none
** Returned value: none
*********************************************************************************************************/
void FIQ_Exception(void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __MAIN_H */
/*********************************************************************************************************
END FILE
*********************************************************************************************************/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?