Platform drivers for Mbed.

Dependents:   EVAL-CN0535-FMCZ EVAL-CN0535-FMCZ EVAL-AD568x-AD569x EVAL-AD7606 ... more

Embed: (wiki syntax)

« Back to documentation index

irq.cpp File Reference

irq.cpp File Reference

Implementation of Interrupt Mbed platform driver interfaces. More...

Go to the source code of this file.

Functions

static void mbed_ext_int_id1_callback (void)
 Mbed callback function for external interrupt ID1 event.
static void mbed_ext_int_id2_callback (void)
 Mbed callback function for external interrupt ID2 event.
static void mbed_ext_int_id3_callback (void)
 Mbed callback function for external interrupt ID3 event.
static void mbed_ext_int_id4_callback (void)
 Mbed callback function for external interrupt ID4 event.
static void mbed_ext_int_id5_callback (void)
 Mbed callback function for external interrupt ID5 event.
static void mbed_uart_rx_id1_callback (void)
 Mbed callback function for UART Rx ID1 event.
static void mbed_ticker_id_callback (void)
 Mbed callback function for ticker ID event.
int32_t irq_ctrl_init (struct irq_ctrl_desc **desc, const struct irq_init_param *param)
 Initialized the controller for the peripheral interrupts.
int32_t irq_ctrl_remove (struct irq_ctrl_desc *desc)
 Free the resources allocated by irq_ctrl_init()
int32_t irq_register_callback (struct irq_ctrl_desc *desc, uint32_t irq_id, struct callback_desc *callback_desc)
 Registers a IRQ callback function to irq controller.
int32_t irq_unregister (struct irq_ctrl_desc *desc, uint32_t irq_id)
 Unregister a IRQ callback function.
int32_t irq_enable (struct irq_ctrl_desc *desc, uint32_t irq_id)
 Enable specific interrupt.
int32_t irq_disable (struct irq_ctrl_desc *desc, uint32_t irq_id)
 Disable specific interrupt.

Detailed Description

Implementation of Interrupt Mbed platform driver interfaces.

Copyright (c) 2020-2021 Analog Devices, Inc. All rights reserved.

This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.

Definition in file irq.cpp.


Function Documentation

int32_t irq_ctrl_init ( struct irq_ctrl_desc **  desc,
const struct irq_init_param *  param 
)

Initialized the controller for the peripheral interrupts.

Parameters:
desc[in,out]- Pointer where the configured instance is stored
param[in]- Configuration information for the instance
Returns:
SUCCESS in case of success, FAILURE otherwise.

Definition at line 163 of file irq.cpp.

int32_t irq_ctrl_remove ( struct irq_ctrl_desc *  desc )

Free the resources allocated by irq_ctrl_init()

Parameters:
desc[in,out]- Interrupt controller descriptor.
Returns:
SUCCESS in case of success, FAILURE otherwise.

Definition at line 252 of file irq.cpp.

int32_t irq_disable ( struct irq_ctrl_desc *  desc,
uint32_t  irq_id 
)

Disable specific interrupt.

Parameters:
desc[in]- The IRQ controller descriptor.
irq_id[in]- Interrupt identifier.
Returns:
SUCCESS in case of success, FAILURE otherwise.

Definition at line 470 of file irq.cpp.

int32_t irq_enable ( struct irq_ctrl_desc *  desc,
uint32_t  irq_id 
)

Enable specific interrupt.

Parameters:
desc[in]- The IRQ controller descriptor.
irq_id[in]- Interrupt identifier.
Returns:
SUCCESS in case of success, FAILURE otherwise.

Definition at line 425 of file irq.cpp.

int32_t irq_register_callback ( struct irq_ctrl_desc *  desc,
uint32_t  irq_id,
struct callback_desc *  callback_desc 
)

Registers a IRQ callback function to irq controller.

Parameters:
desc[in]- The IRQ controller descriptor.
irq_id[in]- Interrupt identifier.
callback_desc- Descriptor of the callback. If it is NULL, the callback will be unregistered
Returns:
SUCCESS in case of success, FAILURE otherwise.

Definition at line 288 of file irq.cpp.

int32_t irq_unregister ( struct irq_ctrl_desc *  desc,
uint32_t  irq_id 
)

Unregister a IRQ callback function.

Parameters:
desc[in]- The IRQ controller descriptor.
irq_id[in]- Interrupt identifier.
Returns:
SUCCESS in case of success, FAILURE otherwise.

Definition at line 377 of file irq.cpp.

static void mbed_ext_int_id1_callback ( void   ) [static]

Mbed callback function for external interrupt ID1 event.

Returns:
none

Definition at line 70 of file irq.cpp.

static void mbed_ext_int_id2_callback ( void   ) [static]

Mbed callback function for external interrupt ID2 event.

Returns:
none

Definition at line 83 of file irq.cpp.

static void mbed_ext_int_id3_callback ( void   ) [static]

Mbed callback function for external interrupt ID3 event.

Returns:
none

Definition at line 96 of file irq.cpp.

static void mbed_ext_int_id4_callback ( void   ) [static]

Mbed callback function for external interrupt ID4 event.

Returns:
none

Definition at line 109 of file irq.cpp.

static void mbed_ext_int_id5_callback ( void   ) [static]

Mbed callback function for external interrupt ID5 event.

Returns:
none

Definition at line 122 of file irq.cpp.

static void mbed_ticker_id_callback ( void   ) [static]

Mbed callback function for ticker ID event.

Returns:
none

Definition at line 148 of file irq.cpp.

static void mbed_uart_rx_id1_callback ( void   ) [static]

Mbed callback function for UART Rx ID1 event.

Returns:
none

Definition at line 135 of file irq.cpp.