A27系列优化I2C/RTC处理,新增版本A270Y
This commit is contained in:
45
A27-STEPLDR/Src/aic.h
Normal file
45
A27-STEPLDR/Src/aic.h
Normal file
@ -0,0 +1,45 @@
|
||||
/**
|
||||
* \file
|
||||
*
|
||||
* \section Purpose
|
||||
*
|
||||
* Methods and definitions for configuring interrupts.
|
||||
*
|
||||
* \section Usage
|
||||
* -# Enable or disable interrupt generation of a particular source with
|
||||
* IRQ_EnableIT and IRQ_DisableIT.
|
||||
* -# Start or stop the timer clock using TC_Start() and TC_Stop().
|
||||
*/
|
||||
|
||||
#ifndef AIC_H
|
||||
#define AIC_H
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
* Headers
|
||||
*------------------------------------------------------------------------------*/
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
* Global functions
|
||||
*------------------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef void (*ISRFunction_t)( void *param );
|
||||
|
||||
extern void AIC_Initialize(void);
|
||||
extern void AIC_EnableIT( uint32_t source);
|
||||
extern void AIC_DisableIT(uint32_t source);
|
||||
extern int32_t request_irq(uint32_t irq_source, int32_t priority, ISRFunction_t func, void *param);
|
||||
extern int32_t free_irq(uint32_t irq_source);
|
||||
extern void AIC_IrqHandler(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif //#ifndef AIC_H
|
||||
|
Reference in New Issue
Block a user