Choco OS  V.0.16.9.0
Join to the chocolate world
oc_interrupts.c File Reference

The file with interface for the GPIO driver. More...

#include <oc_interrupts.h>
#include <oc_null.h>
#include <oc_lsf.h>
#include <oc_array.h>

Go to the source code of this file.

Functions

const oC_InterruptData_toC_Interrupt_GetData (oC_InterruptBaseAddress_t BaseAddress, oC_InterruptType_t InterruptType)
 returns data pointer for interrupt More...
 

Variables

oC_InterruptHandler_t oC_UnexpectedInterruptHandler = NULL
 Handler for unexpected interrupts. More...
 
const oC_InterruptData_t oC_InterruptData [oC_InterruptIndex_NumberOfElements]
 Data for interrupts.
 

Detailed Description


Author
Patryk Kubiak
Note
Copyright (C) 2015 Patryk Kubiak patry.nosp@m.k.ku.nosp@m.biak9.nosp@m.0@gm.nosp@m.ail.c.nosp@m.om

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition in file oc_interrupts.c.

Function Documentation

const oC_InterruptData_t* oC_Interrupt_GetData ( oC_InterruptBaseAddress_t  BaseAddress,
oC_InterruptType_t  InterruptType 
)

The function returns interrupt data pointer from the oC_InterruptData array.

Parameters
BaseAddressBase address to match
InterruptTypeType of interrupt to find
Returns
pointer to the array entry or NULL if not found

Definition at line 98 of file oc_interrupts.c.