![]() |
no-OS
|
Implementation of external irq driver. More...
#include <stdint.h>#include <stdlib.h>#include <stdbool.h>#include <errno.h>#include "rtc.h"#include "uart.h"#include "tmr.h"#include "maxim_irq.h"#include "maxim_irq_priv.h"#include "maxim_dma.h"#include "max78000.h"#include "no_os_uart.h"#include "no_os_util.h"#include "no_os_alloc.h"Macros | |
| #define | MAX_UART_ERROR_FLAGS |
Variables | |
| mxc_uart_req_t | uart_irq_state [MXC_UART_INSTANCES] |
| Descriptors to hold the state of nonblocking read and writes on each port. | |
| bool | is_callback |
| const struct no_os_irq_platform_ops | max_irq_ops |
| maxim specific IRQ platform ops structure | |
Implementation of external irq driver.
Copyright 2022(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
| #define MAX_UART_ERROR_FLAGS |
| void MAXIM_IRQ_HANDLER DMA0_IRQHandler | ( | void | ) |
| void MAXIM_IRQ_HANDLER DMA10_IRQHandler | ( | void | ) |
| void MAXIM_IRQ_HANDLER DMA11_IRQHandler | ( | void | ) |
| void MAXIM_IRQ_HANDLER DMA12_IRQHandler | ( | void | ) |
| void MAXIM_IRQ_HANDLER DMA13_IRQHandler | ( | void | ) |
| void MAXIM_IRQ_HANDLER DMA14_IRQHandler | ( | void | ) |
| void MAXIM_IRQ_HANDLER DMA15_IRQHandler | ( | void | ) |
| void MAXIM_IRQ_HANDLER DMA1_IRQHandler | ( | void | ) |
| void MAXIM_IRQ_HANDLER DMA2_IRQHandler | ( | void | ) |
| void MAXIM_IRQ_HANDLER DMA3_IRQHandler | ( | void | ) |
| void MAXIM_IRQ_HANDLER DMA4_IRQHandler | ( | void | ) |
| void MAXIM_IRQ_HANDLER DMA5_IRQHandler | ( | void | ) |
| void MAXIM_IRQ_HANDLER DMA6_IRQHandler | ( | void | ) |
| void MAXIM_IRQ_HANDLER DMA7_IRQHandler | ( | void | ) |
| void MAXIM_IRQ_HANDLER DMA8_IRQHandler | ( | void | ) |
| void MAXIM_IRQ_HANDLER DMA9_IRQHandler | ( | void | ) |
| int32_t irq_action_cmp | ( | void * | data1, |
| void * | data2 ) |
Action comparator function.
irq_action compare function
| data1 | - List element |
| data2 | - Key |
| int max_irq_ctrl_init | ( | struct no_os_irq_ctrl_desc ** | desc, |
| const struct no_os_irq_init_param * | param ) |
Initialize the interrupt controller.
| desc | - Pointer where the configured instance is stored |
| param | - Configuration information for the instance |
| int max_irq_ctrl_remove | ( | struct no_os_irq_ctrl_desc * | desc | ) |
Free the resources allocated by no_os_irq_ctrl_init()
| desc | - Interrupt controller descriptor. |
| int max_irq_register_callback | ( | struct no_os_irq_ctrl_desc * | desc, |
| uint32_t | irq_id, | ||
| struct no_os_callback_desc * | callback_desc ) |
Register a callback function to be triggered when an interrupt occurs.
| desc | - The IRQ controller descriptor. |
| irq_id | - The interrupt vector entry id of the peripheral. |
| callback_desc | - Descriptor of the callback. |
| int max_irq_trigger_level_set | ( | struct no_os_irq_ctrl_desc * | desc, |
| uint32_t | irq_id, | ||
| enum no_os_irq_trig_level | trig_l ) |
Unused.
| desc | -irq descriptor. |
| irq_id | - The interrupt vector entry id of the peripheral. |
| trig_l | - the trigger condition. |
| int max_irq_unregister_callback | ( | struct no_os_irq_ctrl_desc * | desc, |
| uint32_t | irq_id, | ||
| struct no_os_callback_desc * | cb ) |
Unregister a callback function.
| desc | - Interrupt controller descriptor. |
| irq_id | - The interrupt vector entry id of the peripheral. |
| cb | - Callback descriptor. |
| void max_uart_callback | ( | mxc_uart_req_t * | req, |
| int | result ) |
UART callback function that sets the event and further calls the user registered callback.
Platform specific uart callback function.
| req | - UART request struct |
| result | - status of the request (error code) |
| void MAXIM_IRQ_HANDLER RTC_IRQHandler | ( | void | ) |
| void MAXIM_IRQ_HANDLER UART0_IRQHandler | ( | void | ) |
|
extern |
| const struct no_os_irq_platform_ops max_irq_ops |
maxim specific IRQ platform ops structure
maxim platform specific irq platform ops structure
|
extern |
Descriptors to hold the state of nonblocking read and writes on each port.