root / proj / include / interrupts_func.h @ 343
History | View | Annotate | Download (973 Bytes)
1 | 154 | up20180655 | #ifndef INTERRUPTS_FUNC_H_INCLUDED
|
---|---|---|---|
2 | #define INTERRUPTS_FUNC_H_INCLUDED
|
||
3 | |||
4 | /**
|
||
5 | 340 | up20180642 | * @defgroup interrupts_func interrupts_func
|
6 | * @brief Interrupts functions.
|
||
7 | *
|
||
8 | * @{
|
||
9 | */
|
||
10 | |||
11 | /**
|
||
12 | 154 | up20180655 | * @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 | 323 | up20180642 | int get_interrupts_vector(uint64_t *p);
|
32 | 304 | up20180642 | |
33 | 340 | up20180642 | /**
|
34 | * @}
|
||
35 | */
|
||
36 | |||
37 | 154 | up20180655 | #endif /* end of include guard: INTERRUPTS_FUNC_H_INCLUDED */ |