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

📄 triton_inth.h

📁 OMAP1030 处理器的ARM 侧硬件测试代码 OMAP1030 是TI的双核处理器
💻 H
字号:
/*===============================================================================
            TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION           
                                                                             
   Property of Texas Instruments 
   For  Unrestricted  Internal  Use  Only 
   Unauthorized reproduction and/or distribution is strictly prohibited.  
   This product is protected under copyright law and trade secret law 
   as an unpublished work.  
   Created 1999, (C) Copyright 1999 Texas Instruments.  All rights reserved.

   Filename       	: triton_inth.h

   Description    	: Header file for the triton Interrupt handler

   Project        	: triton

   Author         	: Khelaf Adjriou 
   
  
===============================================================================
*/
#ifndef _TRITON_INTH__HH
#define _TRITON_INTH__HH





/* 
--------------------------------------------------------------------------
         INTERRUPT  CONFIGURATION         
--------------------------------------------------------------------------
*/
#define INTH_BCI_CHARGE_STOP         0
#define INTH_BCI_VBUS_PRE_CHARGE     1
#define INTH_BCI_WATCHDOG_OVERFLOW   2
#define INTH_MADC_SW1                3
#define INTH_MADC_SW2                4
#define INTH_USB_CARKIT_DETECT       5
#define INTH_SIM_CARD                6
#define INTH_PM_PWON                 7 
#define INTH_PM_RPWON                8
#define INTH_PM_BCD                  9
#define INTH_PM_RTC                  10
#define INTH_PM_LOW_BAT              11
#define INTH_PM_USB_ID_DETECT        12
#define INTH_THERMISTOR              13
#define INTH_AUDIO_HOOK_DETECT       14
#define INTH_HEADSET_DETECT          15 


#define INTH_BCI_CHARGE_STOP_MASK       0x0001
#define INTH_BCI_VBUS_PRE_CHARGE_MASK   0x0002
#define INTH_BCI_WATCHDOG_OVERFLOW_MASK 0x0004
#define INTH_MADC_SW1_MASK              0x0008
#define INTH_MADC_SW2_MASK              0x0010
#define INTH_PM_USB_CARKIT_DETECT_MASK  0x0020
#define INTH_SIM_CARD_MASK              0x0040
#define INTH_PM_PWON_MASK               0x0080
#define INTH_PM_RPWON_MASK              0x0100
#define INTH_PM_BCD_MASK                0x0200
#define INTH_PM_RTC_MASK                0x0400
#define INTH_PM_LOW_BAT_MASK            0x0800
#define INTH_PM_USB_ID_DETECT_MASK      0x1000
#define INTH_THERMISTOR_MASK            0x2000
#define INTH_AUDIO_HOOK_DETECT_MASK     0x4000
#define INTH_HEADSET_DETECT_MASK        0x8000 

#define INTH_NUMBER_OF_TRITON_INTERRUPTS    15





//########################################################################################
// NAME        : INTH_GetCurrentItAbb_P1
//
// DESCRIPTION : Get the current It from Triton for interrupt source P1 (Neptune)
//
//
// RETURN VALUE: Number of the active Interrupt
//
// LIMITATIONS : Must be called on Incoming IT from Triton
//########################################################################################

UWORD16 INTH_GetCurrentItAbb_P1();


//########################################################################################
// NAME        : INTH2_ClearIntAbb_P1
//
// DESCRIPTION : Clear the an IT when IT is not enabled (outside of a routine)
//               for interrupt source P1
//
// PARAMETERS  : ItNumber
//
//
// RETURN VALUE: None
//
// LIMITATIONS : None
//########################################################################################
void INTH2_ClearIntAbb_P1(UWORD16 ActivIt );


//########################################################################################
// NAME        : INTH2_MaskIt_P1
//
// DESCRIPTION : Mask Interrupt for interrupt source P1
//
// PARAMETERS  : UWORD6 ItIndex                    
//
//           
//
// RETURN VALUE: None
//
// LIMITATIONS :
//########################################################################################
void INTH2_UnmaskOneIt_P1(UWORD16 ItIndex);

//########################################################################################
// NAME        : INTH2_maskAllIt_P1
//
// DESCRIPTION : Mask(Disable) all interrupt for interrupt source P1
//
// PARAMETERS  : None
//
//
//
// RETURN VALUE: None
//
// LIMITATIONS : None
//########################################################################################
void INTH2_maskAllIt_P1(void);


////////////////////////
//BDEC july 5 th, 2004
////////////////////////

//########################################################################################
// NAME        : INTH_GetCurrentItAbb_P2
//
// DESCRIPTION : Get the current It from Triton for interrupt source P2 (Neptune)
//
//
// RETURN VALUE: Number of the active Interrupt
//
// LIMITATIONS : Must be called on Incoming IT from Triton
//########################################################################################

UWORD16 INTH_GetCurrentItAbb_P2();


//########################################################################################
// NAME        : INTH2_ClearIntAbb_P2
//
// DESCRIPTION : Clear the an IT when IT is not enabled (outside of a routine)
//               for interrupt source P2
//
// PARAMETERS  : ItNumber
//
//
// RETURN VALUE: None
//
// LIMITATIONS : None
//########################################################################################
void INTH2_ClearIntAbb_P2(UWORD16 ActivIt );


//########################################################################################
// NAME        : INTH2_MaskIt_P2
//
// DESCRIPTION : Mask Interrupt for interrupt source P2
//
// PARAMETERS  : UWORD6 ItIndex                    
//
//           
//
// RETURN VALUE: None
//
// LIMITATIONS :
//########################################################################################
void INTH2_UnmaskOneIt_P2(UWORD16 ItIndex);

//########################################################################################
// NAME        : INTH2_maskAllIt_P2
//
// DESCRIPTION : Mask(Disable) all interrupt for interrupt source P2
//
// PARAMETERS  : None
//
//
//
// RETURN VALUE: None
//
// LIMITATIONS : None
//########################################################################################
void INTH2_maskAllIt_P2(void);


#endif

⌨️ 快捷键说明

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