main.h

来自「实现最新的uc/os嵌入式操作系统在LPC2470系列上面的移植(添加了定时器的」· C头文件 代码 · 共 63 行

H
63
字号
/****************************************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                  1 << 30  

#define     BUZZER_Set()            FIO3DIR |= BUZZER,FIO3CLR |= BUZZER
#define     BUZZER_Clr()            FIO3SET |= BUZZER

/*********************************************************************************************************
** 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 + -
显示快捷键?