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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ARM7_STR75x_IAR/] [STLibrary/] [inc/] [75x_eic.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_eic.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
*                      EIC 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_EIC_H
22
#define __75x_EIC_H
23
 
24
/* Includes ------------------------------------------------------------------*/
25
#include "75x_map.h"
26
 
27
/* Exported types ------------------------------------------------------------*/
28
typedef struct
29
{
30
  u8 EIC_IRQChannel;
31
  u8 EIC_IRQChannelPriority;
32
  FunctionalState EIC_IRQChannelCmd;
33
}EIC_IRQInitTypeDef;
34
 
35
typedef struct
36
{
37
  u8 EIC_FIQChannel;
38
  FunctionalState EIC_FIQChannelCmd;
39
}EIC_FIQInitTypeDef;
40
 
41
/* Exported constants --------------------------------------------------------*/
42
/* IRQ channels */
43
#define WAKUP_IRQChannel        0
44
#define TIM2_OC2_IRQChannel     1
45
#define TIM2_OC1_IRQChannel     2
46
#define TIM2_IC12_IRQChannel    3
47
#define TIM2_UP_IRQChannel      4
48
#define TIM1_OC2_IRQChannel     5
49
#define TIM1_OC1_IRQChannel     6
50
#define TIM1_IC12_IRQChannel    7
51
#define TIM1_UP_IRQChannel      8
52
#define TIM0_OC2_IRQChannel     9
53
#define TIM0_OC1_IRQChannel     10
54
#define TIM0_IC12_IRQChannel    11
55
#define TIM0_UP_IRQChannel      12
56
#define PWM_OC123_IRQChannel    13
57
#define PWM_EM_IRQChannel       14
58
#define PWM_UP_IRQChannel       15
59
#define I2C_IRQChannel          16
60
#define SSP1_IRQChannel         17
61
#define SSP0_IRQChannel         18
62
#define UART2_IRQChannel        19
63
#define UART1_IRQChannel        20
64
#define UART0_IRQChannel        21
65
#define CAN_IRQChannel          22
66
#define USB_LP_IRQChannel       23
67
#define USB_HP_IRQChannel       24
68
#define ADC_IRQChannel          25
69
#define DMA_IRQChannel          26
70
#define EXTIT_IRQChannel        27
71
#define MRCC_IRQChannel         28
72
#define FLASHSMI_IRQChannel     29
73
#define RTC_IRQChannel          30
74
#define TB_IRQChannel           31
75
 
76
/* FIQ channels */
77
#define EXTIT_Line0_FIQChannel    0x00000001
78
#define WATCHDOG_FIQChannel       0x00000002
79
 
80
/* Exported macro ------------------------------------------------------------*/
81
/* Exported functions ------------------------------------------------------- */
82
void EIC_DeInit(void);
83
void EIC_IRQInit(EIC_IRQInitTypeDef* EIC_IRQInitStruct);
84
void EIC_FIQInit(EIC_FIQInitTypeDef* EIC_FIQInitStruct);
85
void EIC_IRQStructInit(EIC_IRQInitTypeDef* EIC_IRQInitStruct);
86
void EIC_FIQStructInit(EIC_FIQInitTypeDef* EIC_FIQInitStruct);
87
void EIC_IRQCmd(FunctionalState NewState);
88
void EIC_FIQCmd(FunctionalState NewState);
89
u8 EIC_GetCurrentIRQChannel(void);
90
u8 EIC_GetCurrentIRQChannelPriority(void);
91
void EIC_CurrentIRQPriorityConfig(u8 NewPriority);
92
u8 EIC_GetCurrentFIQChannel(void);
93
void EIC_ClearFIQPendingBit(u8 EIC_FIQChannel);
94
 
95
#endif /* __75x_EIC_H */
96
 
97
/******************* (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.