⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 omap1510_inth2.h

📁 有关于USB的一些主机端驱动
💻 H
📖 第 1 页 / 共 2 页
字号:
#define INTH_INDEX_17 17
#define INTH_INDEX_18 18
#define INTH_INDEX_19 19
#define INTH_INDEX_20 20
#define INTH_INDEX_21 21
#define INTH_INDEX_22 22
#define INTH_INDEX_23 23
#define INTH_INDEX_24 24
#define INTH_INDEX_25 25
#define INTH_INDEX_26 26
#define INTH_INDEX_27 27
#define INTH_INDEX_28 28
#define INTH_INDEX_29 29
#define INTH_INDEX_30 30
#define INTH_INDEX_31 31
#define INTH_INDEX_32 32
#define INTH_INDEX_33 33
#define INTH_INDEX_34 34
#define INTH_INDEX_35 35
#define INTH_INDEX_36 36
#define INTH_INDEX_37 37
#define INTH_INDEX_38 38
#define INTH_INDEX_39 39
#define INTH_INDEX_40 40 
#define INTH_INDEX_41 41 
#define INTH_INDEX_42 42 
#define INTH_INDEX_43 43 
#define INTH_INDEX_44 44 
#define INTH_INDEX_45 45 
#define INTH_INDEX_46 46 
#define INTH_INDEX_47 47 
#define INTH_INDEX_48 48 
#define INTH_INDEX_49 49 
#define INTH_INDEX_60 60  
#define INTH_INDEX_51 51  
#define INTH_INDEX_52 52  
#define INTH_INDEX_53 53  
#define INTH_INDEX_54 54  
#define INTH_INDEX_55 55  
#define INTH_INDEX_56 56  
#define INTH_INDEX_57 57  
#define INTH_INDEX_58 58  
#define INTH_INDEX_59 59  
#define INTH_INDEX_50 50  
#define INTH_INDEX_61 61  
#define INTH_INDEX_62 62  
#define INTH_INDEX_63 63  
                    
//##################################################################
//           Highest  Priority level to process the request
//##################################################################


//##################################################################
//                 Total Number of interrupts                       
//##################################################################
#define LEV1_INTH_NUMBER_OF_INTERRUPTS  32
#define LEV2_INTH_NUMBER_OF_INTERRUPTS  32




//##################################################################
//                 function header                      
//##################################################################


//########################################################################################
// NAME        : INTH2_DisableOneIT                                                 
//
// DESCRIPTION : Disable one interrupt                              
//
// PARAMETERS  : UWORD8 ItIndex 
//
// RETURN VALUE: None         
//
// LIMITATIONS : None                            
//########################################################################################
void INTH2_DisableOneIT(UWORD32 ItIndex);

//########################################################################################
// NAME        : INTH2_EnableOneIT                                                 
//
// DESCRIPTION : Enable one interrupt                              
//
// PARAMETERS  : UWORD8 ItIndex                      See int_mapping.h
//
//              Fiq_or_Irq:  INTH_IRQ or INTH_FIQ
//
// RETURN VALUE: None         
//
// LIMITATIONS : Must be called on Incoming IT                            
//########################################################################################
void INTH2_EnableOneIT(UWORD8 ItIndex, BOOL Fiq_or_Irq);

//#####################################################################
// NAME         : GetAndTestResetExtInth
//
// DESCRIPTION  : Test all the register at reset and store the result
//                                       
// PARAMETERS   : None
//
// RETURN VALUE : None
//               
// LIMITATIONS  : Result must be initialized
//#####################################################################
BOOL INTH2_GetAndTestResetLev2Inth(void);

//########################################################################################
// NAME        : INTH2_GetCurrentIt                                                 
//
// DESCRIPTION : Get the current It and valid the next one
//              
//
// PARAMETERS  : Fiq_or_Irq:  INTH_IRQ or INTH_FIQ
//
//
// RETURN VALUE: Number of the active and acknowledged Interrupt          
//
// LIMITATIONS : Must be called on Incoming IT                            
//########################################################################################
UWORD8 INTH2_GetCurrentIt (BOOL Fiq_or_Irq);

//############################################################################
// NAME        : INTH2_InitLevel                                                   
//
// DESCRIPTION : Writes Level Register (Mask or Unmask interrupt)
//
// PARAMETERS  : UWORD8   ItIndex        See int_mapping.h
//
//               BOOL     Fiq_or_Irq    INTH_FIQ or INTH_IRQ
//
//               UWORD8   Priority      from 0 to 15
//
//               BOOL     SensitiveEdge FALLING_EDGE_SENSITIVE or LOW_LEVEL_SENSITIVE
//
// RETURN VALUE: None
//
// LIMITATIONS : None                                                        
//############################################################################
void INTH2_InitLevel (UWORD8   ItIndex, 
                      BOOL     Fiq_or_Irq,
                      UWORD8   Priority,
                      BOOL     SensitiveEdge);

//#####################################################################
// NAME         : INTH2_TestResetValue
//
// DESCRIPTION  : Call all the test and reset functions
//                                       
// PARAMETERS   : None
//
// RETURN VALUE : None
//               
// LIMITATIONS  : None
//#####################################################################
void INTH2_TestResetValue(void);

//#####################################################################
// NAME         : INTH2_TestResetValue
//
// DESCRIPTION  : Call all the test and reset functions
//                                       
// PARAMETERS   : None
//
// RETURN VALUE : None
//               
// LIMITATIONS  : None
//#####################################################################
void INTH2_TestResetValue(void);


//########################################################################################
// NAME        : INTH2_ValidNextInterrupt                                                 
//
// DESCRIPTION : Valid the next IT depending on the current one 
//              
//
// PARAMETERS  : Fiq_or_Irq:  INTH_IRQ or INTH_FIQ
//
//
// RETURN VALUE: None       
//
// LIMITATIONS : Must be called on Incoming IT                            
//########################################################################################
void INTH2_ValidNextInterrupt (BOOL Fiq_or_Irq);


//########################################################################################
// NAME        : INTH2_TestResetValue                                                 
//
// DESCRIPTION : Test the registers values at reset 
//              
//
// PARAMETERS  : None
//
//
// RETURN VALUE: None       
//
// LIMITATIONS : None                           
//########################################################################################
void INTH2_TestResetValue(void);


//########################################################################################
// NAME        : INTH2_TestRegistersAccess                                                 
//
// DESCRIPTION : Test the registers values at reset 
//              
//
// PARAMETERS  : None
//
//
// RETURN VALUE: None       
//
// LIMITATIONS : None                           
//########################################################################################
void INTH2_TestRegistersAccess(void);

//########################################################################################
// NAME        : INTH2_ClearInt                                                 
//
// DESCRIPTION : Clear the an IT when IT is not enabled (outside of a routine) 
//               Prefer use ValidNext in a routine 
//               
//
// PARAMETERS  : ItNumber
//
//
// RETURN VALUE: None       
//
// LIMITATIONS : None                            
//########################################################################################
void INTH2_ClearInt(UWORD8 ItIndex);

#endif /* _OMAP1510_INTH2__H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -