mirror of
https://github.com/fhgwright/SCSI2SD.git
synced 2024-06-02 06:41:36 +00:00
71 lines
2.5 KiB
C
71 lines
2.5 KiB
C
/*******************************************************************************
|
|
* File Name: SCSI_RST_ISR.h
|
|
* Version 1.70
|
|
*
|
|
* Description:
|
|
* Provides the function definitions for the Interrupt Controller.
|
|
*
|
|
*
|
|
********************************************************************************
|
|
* Copyright 2008-2015, Cypress Semiconductor Corporation. All rights reserved.
|
|
* You may use this file only in accordance with the license, terms, conditions,
|
|
* disclaimers, and limitations in the end user license agreement accompanying
|
|
* the software package with which this file was provided.
|
|
*******************************************************************************/
|
|
#if !defined(CY_ISR_SCSI_RST_ISR_H)
|
|
#define CY_ISR_SCSI_RST_ISR_H
|
|
|
|
|
|
#include <cytypes.h>
|
|
#include <cyfitter.h>
|
|
|
|
/* Interrupt Controller API. */
|
|
void SCSI_RST_ISR_Start(void);
|
|
void SCSI_RST_ISR_StartEx(cyisraddress address);
|
|
void SCSI_RST_ISR_Stop(void);
|
|
|
|
CY_ISR_PROTO(SCSI_RST_ISR_Interrupt);
|
|
|
|
void SCSI_RST_ISR_SetVector(cyisraddress address);
|
|
cyisraddress SCSI_RST_ISR_GetVector(void);
|
|
|
|
void SCSI_RST_ISR_SetPriority(uint8 priority);
|
|
uint8 SCSI_RST_ISR_GetPriority(void);
|
|
|
|
void SCSI_RST_ISR_Enable(void);
|
|
uint8 SCSI_RST_ISR_GetState(void);
|
|
void SCSI_RST_ISR_Disable(void);
|
|
|
|
void SCSI_RST_ISR_SetPending(void);
|
|
void SCSI_RST_ISR_ClearPending(void);
|
|
|
|
|
|
/* Interrupt Controller Constants */
|
|
|
|
/* Address of the INTC.VECT[x] register that contains the Address of the SCSI_RST_ISR ISR. */
|
|
#define SCSI_RST_ISR_INTC_VECTOR ((reg32 *) SCSI_RST_ISR__INTC_VECT)
|
|
|
|
/* Address of the SCSI_RST_ISR ISR priority. */
|
|
#define SCSI_RST_ISR_INTC_PRIOR ((reg8 *) SCSI_RST_ISR__INTC_PRIOR_REG)
|
|
|
|
/* Priority of the SCSI_RST_ISR interrupt. */
|
|
#define SCSI_RST_ISR_INTC_PRIOR_NUMBER SCSI_RST_ISR__INTC_PRIOR_NUM
|
|
|
|
/* Address of the INTC.SET_EN[x] byte to bit enable SCSI_RST_ISR interrupt. */
|
|
#define SCSI_RST_ISR_INTC_SET_EN ((reg32 *) SCSI_RST_ISR__INTC_SET_EN_REG)
|
|
|
|
/* Address of the INTC.CLR_EN[x] register to bit clear the SCSI_RST_ISR interrupt. */
|
|
#define SCSI_RST_ISR_INTC_CLR_EN ((reg32 *) SCSI_RST_ISR__INTC_CLR_EN_REG)
|
|
|
|
/* Address of the INTC.SET_PD[x] register to set the SCSI_RST_ISR interrupt state to pending. */
|
|
#define SCSI_RST_ISR_INTC_SET_PD ((reg32 *) SCSI_RST_ISR__INTC_SET_PD_REG)
|
|
|
|
/* Address of the INTC.CLR_PD[x] register to clear the SCSI_RST_ISR interrupt. */
|
|
#define SCSI_RST_ISR_INTC_CLR_PD ((reg32 *) SCSI_RST_ISR__INTC_CLR_PD_REG)
|
|
|
|
|
|
#endif /* CY_ISR_SCSI_RST_ISR_H */
|
|
|
|
|
|
/* [] END OF FILE */
|