![]() |
PDK API Guide for J721E
|
Hardware Interrupt module for the RTOS Porting Interface.
============================================================================
The HwiP_disable/HwiP_restore APIs can be called recursively. The order of the HwiP_restore calls, must be in reversed order. For example:
Go to the source code of this file.
Data Structures | |
struct | HwiP_Params |
Basic HwiP Parameters. More... | |
Macros | |
#define | HWIP_USE_DEFAULT_PRIORITY (~((uint32_t)0)) |
Typedefs | |
typedef void * | HwiP_Handle |
Opaque client reference to an instance of a HwiP. More... | |
typedef void(* | HwiP_Fxn) (uintptr_t arg) |
Prototype for the entry function for a hardware interrupt. More... | |
typedef void(* | HwiP_DirectFxn) (void) |
Prototype for the entry function for a hardware interrupt registered using HwiP_createDirect. More... | |
Enumerations | |
enum | HwiP_Status { HwiP_OK = 0, HwiP_FAILURE = (-(int32_t)1) } |
Status codes for HwiP APIs. More... | |
enum | OSAL_armGicTrigType_t { OSAL_ARM_GIC_TRIG_TYPE_LEVEL = 1, OSAL_ARM_GIC_TRIG_TYPE_EDGE = 2, OSAL_ARM_GIC_TRIG_TYPE_HIGH_LEVEL = 3, OSAL_ARM_GIC_TRIG_TYPE_LOW_LEVEL = 4, OSAL_ARM_GIC_TRIG_TYPE_RISING_EDGE = 5, OSAL_ARM_GIC_TRIG_TYPE_FALLING_EDGE = 6 } |
Enumerates the types different trigger types. Please refer to Section 4.3.13 Interrupt Configuration Registers, GICD_ICFGRn of ARM Generic Interrupt Controller Architecture version 2.0 Architecture Specification document for details. More... | |
Functions | |
void | HwiP_clearInterrupt (int32_t interruptNum) |
Function to clear a single interrupt. More... | |
HwiP_Handle | HwiP_create (int32_t interruptNum, HwiP_Fxn hwiFxn, const HwiP_Params *hwipParams) |
Function to create an interrupt on CortexM devices. More... | |
HwiP_Handle | HwiP_createDirect (int32_t interruptNum, HwiP_DirectFxn hwiFxn, const HwiP_Params *hwipParams) |
Function to create an interrupt using VIM direct registration. More... | |
HwiP_Status | HwiP_delete (HwiP_Handle hwiPhandle) |
Function to delete an interrupt on CortexM devices. More... | |
uintptr_t | HwiP_disable (void) |
Function to disable interrupts to enter a critical region. More... | |
void | HwiP_disableInterrupt (int32_t interruptNum) |
Function to disable a single interrupt. More... | |
void | HwiP_enableInterrupt (int32_t interruptNum) |
Function to enable a single interrupt. More... | |
void | HwiP_Params_init (HwiP_Params *hwipParams) |
Initialize params structure to default values. More... | |
void | HwiP_restore (uintptr_t key) |
Function to restore interrupts to exit a critical region. More... | |
HwiP_Handle | HwiP_getHandle (int32_t interruptNum) |
Function to get HwiP Handle from an interrupt number. More... | |
int32_t | HwiP_getEventId (int32_t interruptNum) |
Function to get the eventId associated with an interrupt number. More... | |
int32_t | HwiP_post (uint32_t interruptNum) |
Function to post the Hwi interrupt by software. More... | |