iLLD_TC27xD
1.0
|
For each interrupt service request control register, an API that returns the register address shall be available. The API syntax is as follow: volatile Ifx_SRC_SRCR* <driverName>_get<Interrupt>Src(<ModuleType>*module);
Example: The transmit interrupt of the QSPI driver has the following API:
volatile Ifx_SRC_SRCR* IfxQspi_getTransmitSrc(Ifx_QSPI* module);
The API Ifx<Module>_getIndex(Ifx_<MODULE>* module) shall be implemented in the file Ifx<Module>.c/h and use an array define in Ifx<Module>_cfg.c/h;
Example:
In file Ifxcpu.h
In file Ifxcpu.c
In file Ifxcpu_cfg.h
In file Ifxcpu_cfg.c