44 | | /***************************************************************************************** |
45 | | * This blocking function enable one IRQ defined by its type (HWI/WTI/PTI) and index |
46 | | * in the local ICU device descriptor, and register it in the proper interrupt vector |
47 | | * of the calling core. |
48 | | ***************************************************************************************** |
49 | | * @ irq_type : HWI/WTI/PTI. |
50 | | * @ irq_id : IRQ index. |
51 | | * @ device : pointer on device descriptor source of IRQ. |
52 | | * @ returns 0 if success / returns EINVAL if illegal arguments. |
53 | | ****************************************************************************************/ |
54 | | error_t dev_icu_enable_irq( uint32_t irq_type, |
55 | | uint32_t irq_id, |
56 | | device_t * src_dev ); |
| 43 | This function must be executed by a thread running in the cluster containing the ICU device descriptor. It enables one IRQ defined by its type and index for the calling core, and register it in the interrupt vector. |
| 44 | The <irq_type> and <irq_id> arguments define the IRQ type and index. The <src_dev> argument is the remote pointer on the source device. |
| 45 | It returns 0 if success / returns EINVAL if illegal arguments. |
58 | | /***************************************************************************************** |
59 | | * This blocking function disable one IRQ defined by its type (HWI/WTI/PTI) and index |
60 | | * in the local ICU device descriptor, and remove it from the proper interrupt vector |
61 | | * of the calling core. |
62 | | ***************************************************************************************** |
63 | | * @ irq_type : HWI/WTI/PTI. |
64 | | * @ irq_id : IRQ index. |
65 | | * @ returns 0 if success / returns EINVAL if illegal arguments. |
66 | | ****************************************************************************************/ |
67 | | error_t dev_icu_disable_irq( uint32_t irq_type, |
68 | | uint32_t irq_id ); |
69 | | |
| 47 | === 3) '''error_t dev_icu_disable_irq'''( uint32_t irq_type , uint32_t irq_id ) === |
| 48 | |
| 49 | This function must be executed by a thread running in the cluster containing the ICU device descriptor. It disables one IRQ defined by its type and index, for the calling core, and remove it from the interrupt vector. |
| 50 | The <irq_type> and <irq_id> arguments define the IRQ type and index. |
| 51 | It returns 0 if success / returns EINVAL if illegal arguments. |
| 52 | |
| 53 | |
| 54 | |
| 55 | |