Project

General

Profile

Statistics
| Revision:

root / proj / include / interrupts_func.h @ 343

History | View | Annotate | Download (973 Bytes)

1
#ifndef INTERRUPTS_FUNC_H_INCLUDED
2
#define INTERRUPTS_FUNC_H_INCLUDED
3

    
4
/**
5
 * @defgroup interrupts_func interrupts_func
6
 * @brief Interrupts functions.
7
 *
8
 * @{
9
 */
10

    
11
/**
12
 * @brief Subscribes all drivers used (timer->keyboard->mouse)
13
 * @return ERROR_CODE code representing the result of the operation, SUCCESS code is returned if everything is OK
14
 * @see {_ERRORS_H_::errors}
15
 */
16
int (subscribe_all)(void);
17

    
18
/**
19
 * @brief Unsubscribes all subscribed interrupts
20
 * @return ERROR_CODE code representing the result of the operation, SUCCESS code is returned if everything is OK
21
 * @see {_ERRORS_H_::errors}
22
 */
23
int (unsubscribe_all)(void);
24

    
25
/**
26
 * @brief Calls interrupt handler corresponding to the bit specified by the argument.
27
 * @param handler Interrupt handler to call
28
 */
29
void interrupt_handler(uint8_t handler);
30

    
31
int get_interrupts_vector(uint64_t *p);
32

    
33
/**
34
 * @}
35
 */
36

    
37
#endif /* end of include guard: INTERRUPTS_FUNC_H_INCLUDED */