eic.h
Go to the documentation of this file.
1 /*
2  * Copyright 2016, Imagination Technologies Limited and/or its
3  * affiliated group companies.
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
20 #ifndef EIC_H
21 #define EIC_H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
30 typedef void (*external_isr_ptr_t)(void);
31 
35 void set_external_isr_cb(int vecNum, external_isr_ptr_t cbFunc);
36 
44 void eic_configure_priority(int vecNum, int priority, int subpriority);
45 
51 void eic_enable(int vecNum);
52 
58 void eic_disable(int vecNum);
59 
65 void eic_clear_flag(int vecNum);
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif /* EIC_H */
72 
external_isr_ptr_t
void(* external_isr_ptr_t)(void)
External ISR callback.
Definition: eic.h:30
eic_configure_priority
void eic_configure_priority(int vecNum, int priority, int subpriority)
Configure interrupt priority.
eic_clear_flag
void eic_clear_flag(int vecNum)
Clear interrupt flag.
eic_disable
void eic_disable(int vecNum)
Disable interrupt.
set_external_isr_cb
void set_external_isr_cb(int vecNum, external_isr_ptr_t cbFunc)
Set External ISR callback.
eic_enable
void eic_enable(int vecNum)
Enable interrupt.