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

The file with interface interrupt module. More...

#include <oc_interrupts_defs.h>
#include <oc_ba.h>
#include <oc_compiler.h>
#include <oc_mcs.h>

Go to the source code of this file.

Data Structures

struct  oC_InterruptData_t
 structure with data for interrupts More...
 

Macros

#define oC_InterruptType_(TYPE_NAME)
 Returns value from oC_InterruptType_t. It is an index of interrupt type.
 
#define oC_InterruptIndex_(BASE_NAME, TYPE_NAME)
 Returns value from oC_InterruptIndex_t. It is an index of interrupt in interrupts vector.
 
#define oC_InterruptNumber_(BASE_NAME, TYPE_NAME)
 Returns value from oC_InterruptNumber_t.
 
#define oC_InterruptBaseAddress_(BASE_NAME, TYPE_NAME)
 Returns value from oC_InterruptBaseAddress_t. More...
 
#define oc_InterruptHandlerName(BASE_NAME, TYPE_NAME)
 returns name of interrupt function More...
 
#define oC_InterruptHandlerPrototype(BASE_NAME, TYPE_NAME)
 returns handler prototype of interrupt handler More...
 
#define oC_InterruptHandlerWeakPrototype(BASE_NAME, TYPE_NAME)
 creates weak interrupt handler prototype. Not for user usage
 
#define oC_InterruptHandler(BASE_NAME, TYPE_NAME)
 Define handler for interrupt. More...
 
#define oC_DefaultInterruptHandler
 Creates prototype of default interrupt handler. More...
 
#define oC_DefaultInterruptHandlerPrototype
 Creates special prototype for default interrupt handler. Not for user usage.
 
#define oC_ResetInterruptHandlerName
 Name of reset handler. Not for user usage.
 
#define oC_ResetInterruptHandler
 Prototype for reset handler. Not for user usage.
 
#define oC_ResetInterruptHandlerPrototype
 Prototype of reset handler. Not for user usage.
 

Typedefs

typedef void(* oC_InterruptHandler_t) (void)
 Stores interrupt handler pointer. More...
 

Enumerations

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
 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.h.

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.