#include <device.h>
#include <irq.h>
Go to the source code of this file.
|
int | mchp_xec_ecia_enable (int girq_id, int src) |
| Driver for External interrupt controller in Microchip XEC devices. More...
|
|
int | mchp_xec_ecia_disable (int girq_id, int src) |
| disable EXTI interrupt for specific line More...
|
|
int | mchp_xec_ecia_set_callback (int girq_id, int src, mchp_xec_ecia_callback_t cb, void *data) |
| set GIRQn interrupt source callback More...
|
|
int | mchp_xec_ecia_set_callback_by_dev (const struct device *dev_girq, int src, mchp_xec_ecia_callback_t cb, void *data) |
| set GIRQn interrupt source callback More...
|
|
int | mchp_ecia_unset_callback (int girq_id, int src) |
| unset GIRQn interrupt source callback More...
|
|
int | mchp_ecia_unset_callback_by_dev (const struct device *dev_girq, int src) |
| unset GIRQn interrupt source callback More...
|
|
void | mchp_xec_ecia_girq_aggr_en (uint8_t girq_id, uint8_t enable) |
| enable or disable aggregated GIRQ output More...
|
|
void | mchp_xec_ecia_girq_src_clr (uint8_t girq_id, uint8_t src_bit) |
| clear GIRQ latched source status bit More...
|
|
void | mchp_xec_ecia_girq_src_en (uint8_t girq_id, uint8_t src_bit) |
| enable a source in a GIRQ More...
|
|
void | mchp_xec_ecia_girq_src_dis (uint8_t girq_id, uint8_t src_bit) |
| disable a source in a GIRQ More...
|
|
void | mchp_xec_ecia_girq_src_clr_bitmap (uint8_t girq_id, uint32_t bitmap) |
| clear GIRQ latches sources specified in bitmap More...
|
|
void | mchp_xec_ecia_girq_src_en_bitmap (uint8_t girq_id, uint32_t bitmap) |
| enable sources in a GIRQ More...
|
|
void | mchp_xec_ecia_girq_src_dis_bitmap (uint8_t girq_id, uint32_t bitmap) |
| disable sources in a GIRQ More...
|
|
uint32_t | mchp_xec_ecia_girq_result (uint8_t girq_id) |
| Read GIRQ result register (bit-wise OR of enable and source) More...
|
|
void | mchp_xec_ecia_nvic_clr_pend (uint32_t nvic_num) |
| Clear external NVIC input pending status. More...
|
|
◆ mchp_xec_ecia_callback_t
typedef void(* mchp_xec_ecia_callback_t) (int girq_id, int src, void *user) |
◆ mchp_ecia_unset_callback()
int mchp_ecia_unset_callback |
( |
int |
girq_id, |
|
|
int |
src |
|
) |
| |
unset GIRQn interrupt source callback
- Parameters
-
girq_id | is the GIRQ number (8 - 26) |
src | is the interrupt source in the GIRQ (0 - 31) |
◆ mchp_ecia_unset_callback_by_dev()
int mchp_ecia_unset_callback_by_dev |
( |
const struct device * |
dev_girq, |
|
|
int |
src |
|
) |
| |
unset GIRQn interrupt source callback
- Parameters
-
dev_girq | is a handle to the GIRQn device |
src | is the interrupt source in the GIRQ (0 - 31) |
◆ mchp_xec_ecia_disable()
int mchp_xec_ecia_disable |
( |
int |
girq_id, |
|
|
int |
src |
|
) |
| |
disable EXTI interrupt for specific line
- Parameters
-
girq_id | is the GIRQ number (8 - 26) |
src | is the interrupt source in the GIRQ (0 - 31) |
◆ mchp_xec_ecia_enable()
int mchp_xec_ecia_enable |
( |
int |
girq_id, |
|
|
int |
src |
|
) |
| |
Driver for External interrupt controller in Microchip XEC devices.
Based on reference manuals: Reference Manuals for MEC152x and MEC172x ARM(r) 32-bit MCUs
Chapter: EC Interrupt Aggregator (ECIA)
enable GIRQn interrupt for specific source
- Parameters
-
girq_id | is the GIRQ number (8 - 26) |
src | is the interrupt source in the GIRQ (0 - 31) |
◆ mchp_xec_ecia_girq_aggr_en()
enable or disable aggregated GIRQ output
- Parameters
-
girq_id | is the GIRQ number (8 - 26) |
enable | non-zero enables aggregated output else disables |
◆ mchp_xec_ecia_girq_result()
Read GIRQ result register (bit-wise OR of enable and source)
- Parameters
-
girq_id | is the GIRQ number (8 - 26) |
- Returns
- 32-bit unsigned result register value
◆ mchp_xec_ecia_girq_src_clr()
clear GIRQ latched source status bit
- Parameters
-
girq_id | is the GIRQ number (8 - 26) |
src_bit | is the source bit position in the GIRQ registers (0 - 31) |
◆ mchp_xec_ecia_girq_src_clr_bitmap()
clear GIRQ latches sources specified in bitmap
- Parameters
-
girq_id | is the GIRQ number (8 - 26) |
bitmap | contains the source bits to clear |
◆ mchp_xec_ecia_girq_src_dis()
disable a source in a GIRQ
- Parameters
-
girq_id | is the GIRQ number (8 - 26) |
src_bit | is the source bit position in the GIRQ registers (0 - 31) |
◆ mchp_xec_ecia_girq_src_dis_bitmap()
disable sources in a GIRQ
- Parameters
-
girq_id | is the GIRQ number (8 - 26) |
bitmap | contains the source bits to disable |
◆ mchp_xec_ecia_girq_src_en()
enable a source in a GIRQ
- Parameters
-
girq_id | is the GIRQ number (8 - 26) |
src_bit | is the source bit position in the GIRQ registers (0 - 31) |
◆ mchp_xec_ecia_girq_src_en_bitmap()
enable sources in a GIRQ
- Parameters
-
girq_id | is the GIRQ number (8 - 26) |
bitmap | contains the source bits to enable |
◆ mchp_xec_ecia_nvic_clr_pend()
Clear external NVIC input pending status.
- Parameters
-
nvic_num | is 0 to maximum NVIC inputs for the chip. |
◆ mchp_xec_ecia_set_callback()
set GIRQn interrupt source callback
- Parameters
-
girq_id | is the GIRQ number (8 - 26) |
src | is the interrupt source in the GIRQ (0 - 31) |
cb | user callback |
data | user data |
◆ mchp_xec_ecia_set_callback_by_dev()
set GIRQn interrupt source callback
- Parameters
-
dev_girq | is a handle to the GIRQn device |
src | is the interrupt source in the GIRQ (0 - 31) |
cb | user callback |
data | user data |