Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
intc_ra_icu.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
8
9#ifndef ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_RA_ICU_H_
10#define ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_RA_ICU_H_
11
12#define RA_ICU_FLAG_EVENT_OFFSET 8
13#define RA_ICU_FLAG_EVENT_MASK (BIT_MASK(8) << RA_ICU_FLAG_EVENT_OFFSET)
14#define RA_ICU_FLAG_INTCFG_OFFSET 16
15#define RA_ICU_FLAG_INTCFG_MASK (BIT_MASK(8) << RA_ICU_FLAG_INTCFG_OFFSET)
16
23
24typedef void (*ra_isr_handler)(const void *);
25
26extern void ra_icu_clear_int_flag(unsigned int irqn);
27
30
31extern void ra_icu_query_irq_config(unsigned int irq, uint32_t *intcfg, ra_isr_handler *pisr,
32 const void **cbarg);
33
34extern int ra_icu_irq_connect_dynamic(unsigned int irq, unsigned int priority,
35 void (*routine)(const void *parameter), const void *parameter,
37
38extern int ra_icu_irq_disconnect_dynamic(unsigned int irq, unsigned int priority,
39 void (*routine)(const void *parameter),
40 const void *parameter, uint32_t flags);
41
42#endif /* ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_RA_ICU_H_ */
int ra_icu_query_available_irq(uint32_t event)
void ra_icu_clear_int_flag(unsigned int irqn)
int ra_icu_irq_disconnect_dynamic(unsigned int irq, unsigned int priority, void(*routine)(const void *parameter), const void *parameter, uint32_t flags)
int ra_icu_query_exists_irq(uint32_t event)
int ra_icu_irq_connect_dynamic(unsigned int irq, unsigned int priority, void(*routine)(const void *parameter), const void *parameter, uint32_t flags)
icu_irq_mode
Definition intc_ra_icu.h:17
@ ICU_RISING
Definition intc_ra_icu.h:19
@ ICU_BOTH_EDGE
Definition intc_ra_icu.h:20
@ ICU_LOW_LEVEL
Definition intc_ra_icu.h:21
@ ICU_FALLING
Definition intc_ra_icu.h:18
void(* ra_isr_handler)(const void *)
Definition intc_ra_icu.h:24
void ra_icu_query_irq_config(unsigned int irq, uint32_t *intcfg, ra_isr_handler *pisr, const void **cbarg)
flags
Definition parser.h:96
__UINT32_TYPE__ uint32_t
Definition stdint.h:90