OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ARM7_STR75x_GCC/] [STLibrary/] [inc/] [75x_extit.h] - Blame information for rev 577

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 577 jeremybenn
/******************** (C) COPYRIGHT 2006 STMicroelectronics ********************
2
* File Name          : 75x_extit.h
3
* Author             : MCD Application Team
4
* Date First Issued  : 03/10/2006
5
* Description        : This file contains all the functions prototypes for the
6
*                      EXTIT software library.
7
********************************************************************************
8
* History:
9
* 07/17/2006 : V1.0
10
* 03/10/2006 : V0.1
11
********************************************************************************
12
* THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
13
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
14
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
15
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
16
* CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
17
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18
*******************************************************************************/
19
 
20
/* Define to prevent recursive inclusion -------------------------------------*/
21
#ifndef __75x_EXTIT_H
22
#define __75x_EXTIT_H
23
 
24
/* Includes ------------------------------------------------------------------*/
25
#include "75x_map.h"
26
 
27
/* Exported types ------------------------------------------------------------*/
28
/* EXTIT Trigger enumeration */
29
typedef enum
30
{
31
  EXTIT_ITTrigger_Falling = 1,
32
  EXTIT_ITTrigger_Rising
33
}EXTITTrigger_TypeDef;
34
 
35
/* EXTIT Init Structure definition */
36
typedef struct
37
{
38
  u32 EXTIT_ITLine;
39
  EXTITTrigger_TypeDef EXTIT_ITTrigger;
40
  FunctionalState EXTIT_ITLineCmd;
41
}EXTIT_InitTypeDef;
42
 
43
/* Exported constants --------------------------------------------------------*/
44
/* EXTIT Lines */
45
#define EXTIT_ITLineNone    0x0000  /* No interrupt selected */
46
#define EXTIT_ITLine0       0x0001  /* External interrupt line 0 */
47
#define EXTIT_ITLine1       0x0002  /* External interrupt line 1 */
48
#define EXTIT_ITLine2       0x0004  /* External interrupt line 2 */
49
#define EXTIT_ITLine3       0x0008  /* External interrupt line 3 */
50
#define EXTIT_ITLine4       0x0010  /* External interrupt line 4 */
51
#define EXTIT_ITLine5       0x0020  /* External interrupt line 5 */
52
#define EXTIT_ITLine6       0x0040  /* External interrupt line 6 */
53
#define EXTIT_ITLine7       0x0080  /* External interrupt line 7 */
54
#define EXTIT_ITLine8       0x0100  /* External interrupt line 8 */
55
#define EXTIT_ITLine9       0x0200  /* External interrupt line 9 */
56
#define EXTIT_ITLine10      0x0400  /* External interrupt line 10 */
57
#define EXTIT_ITLine11      0x0800  /* External interrupt line 11 */
58
#define EXTIT_ITLine12      0x1000  /* External interrupt line 12 */
59
#define EXTIT_ITLine13      0x2000  /* External interrupt line 13 */
60
#define EXTIT_ITLine14      0x4000  /* External interrupt line 14 */
61
#define EXTIT_ITLine15      0x8000  /* External interrupt line 15 */
62
 
63
/* Exported macro ------------------------------------------------------------*/
64
/* Exported functions ------------------------------------------------------- */
65
 
66
void EXTIT_DeInit(void);
67
void EXTIT_Init(EXTIT_InitTypeDef* EXTIT_InitStruct);
68
void EXTIT_StructInit(EXTIT_InitTypeDef* EXTIT_InitStruct);
69
void EXTIT_GenerateSWInterrupt(u16 EXTIT_ITLine);
70
FlagStatus EXTIT_GetFlagStatus(u16 EXTIT_ITLine);
71
void EXTIT_ClearFlag(u16 EXTIT_ITLine);
72
ITStatus EXTIT_GetITStatus(u16 EXTIT_ITLine);
73
void EXTIT_ClearITPendingBit(u16 EXTIT_ITLine);
74
 
75
#endif /* __75x_EXTIT_H */
76
 
77
/******************* (C) COPYRIGHT 2006 STMicroelectronics *****END OF FILE****/

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.