📄 itc.h
字号:
/*
*******************************************************************************
COPYRIGHT 2002 STMicroelectronics
Source File Name : ITC.h
Group : IPSW, CMG - IPDF
Author : MCD Application Team
Date First Issued: 5/3/2002
********************************Documentation**********************************
General Purpose - This file conatains the declaration of functions written in
ITC.c
********************************RevisionHistory********************************
1.Function name EXT_ITSensitivity changed as ConfigureInterrupt
2.Function name ITC_Disable_IT was included.
3. Added necessary comments.
4. Updated the file for release 2.0.
_______________________________________________________________________________
Date : 5/3/2002 Release: 1.0
Date :23/9/2003 Release: 2.0
Date :28/04/04 MISRA changes
******************************************************************************/
#ifndef ITC_H
#define ITC_H
#include "ST7lib_Config.h"
/* Description of all the functions defined in this module */
typedef enum { /*Priority Level of interupt*/
IT_LEVEL_0 = (unsigned char)2,
IT_LEVEL_1 = (unsigned char)1,
IT_LEVEL_2 = (unsigned char)0,
IT_LEVEL_3 = (unsigned char)3
}ITC_LEVEL;
typedef enum { /*Sensitvity of the Interrupt pin*/
IT_EDGE_F =(unsigned char)0x02,
IT_EDGE_R =(unsigned char)0x01,
IT_EDGE_R_1 =(unsigned char)0x04,
IT_EDGE_F_0 =(unsigned char)0x00,
IT_EDGE_FR =(unsigned char)0x03,
IT_DEFAULT =(unsigned char )0x00
}ITC_Sensitivity;
typedef enum { /*Interrupt Port*/
IT_PortA =(unsigned char)0x01,
IT_PortB =(unsigned char)0x02,
IT_PortC =(unsigned char)0x04,
IT_PortD =(unsigned char)0x08,
IT_PortE =(unsigned char)0x10,
IT_PortF =(unsigned char)0x20
}ITC_Port;
void ITC_Init (void); /*Initialise all the registers with default value*/
void ITC_TRAP (void); /*Generates the TRAP interrupt*/
void ITC_ConfigureInterrupt(ITC_Port Portx,unsigned char Pin,
ITC_Sensitivity Sensitivity);
/*Sets the sensitvity of the selected Interrupt Pin */
#endif
/**** (c) 2002 STMicroelectronics *************************** END OF FILE **/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -