src/os/intmgmt.c File Reference

Interrupt Management wrapper written to abstract out OS (BIOS) specific interrupt management calls. More...


Functions

Uint32 Interrupt_add (IntSetup *myIntSetup)
Uint32 Interrupt_delete (IntSetup *myIntSetup)
Uint32 Interrupt_enable (IntSetup *myIntSetup)
Uint32 Interrupt_disable (IntSetup *myIntSetup)


Detailed Description

Interrupt Management wrapper written to abstract out OS (BIOS) specific interrupt management calls.

NOTE: (C) Copyright 2008, Texas Instruments, Inc.

Function Documentation

Uint32 Interrupt_add ( IntSetup myIntSetup  ) 

Interrupt_add
Validates the interrupt setup parameters and sets up the interrupt using BIOS. Uses the Hardware Interrupt Selector (HWI) selector module of BIOS if a single system event is being mapped directly to a DSP interrupt vector. Alternatively, this function chooses the Event Combiner Manager (ECM) module of BIOS for setting up interrupts, if more than one system event needs to be combined into a DSP interrupt vector.

Parameters:
[in] myIntSetup Pointer to the Interrupt Setup object filled in by the user.
Return values:
1 - Invalid Interrupt Setup Parameters 0 - Success

Uint32 Interrupt_delete ( IntSetup myIntSetup  ) 

Interrupt_delete
Currently just a placeholder. There is no known way to delete interrupts setup already, other than remapping the same system events to a different DSP interrupt number line.

Parameters:
[in] myIntSetup Pointer to the Interrupt Setup object filled in by the user.
Return values:
0 - Success (Always returns success)

Uint32 Interrupt_disable ( IntSetup myIntSetup  ) 

Interrupt_disable
Validates the interrupt setup parameters and disables the interrupt using BIOS defined constructs.

Parameters:
[in] myIntSetup Pointer to the Interrupt Setup object filled in by the user.
Return values:
1 - Invalid Interrupt Setup Parameters 0 - Success

Uint32 Interrupt_enable ( IntSetup myIntSetup  ) 

Interrupt_enable
Validates the interrupt setup parameters and enables the interrupt using BIOS defined constructs.

Parameters:
[in] myIntSetup Pointer to the Interrupt Setup object filled in by the user.
Return values:
1 - Invalid Interrupt Setup Parameters 0 - Success


Copyright 2009, Texas Instruments Incorporated