Revision 345
reorganizing
interrupts_func.h | ||
---|---|---|
8 | 8 |
* @{ |
9 | 9 |
*/ |
10 | 10 |
|
11 |
#include "timer.h" |
|
12 |
#include "kbc.h" |
|
13 |
#include "keyboard.h" |
|
14 |
#include "mouse.h" |
|
15 |
|
|
11 | 16 |
/** |
12 | 17 |
* @brief Subscribes all drivers used (timer->keyboard->mouse) |
13 | 18 |
* @return ERROR_CODE code representing the result of the operation, SUCCESS code is returned if everything is OK |
... | ... | |
28 | 33 |
*/ |
29 | 34 |
void interrupt_handler(uint8_t handler); |
30 | 35 |
|
36 |
/** |
|
37 |
* @brief Blocking function that waits for an interrupt to occur. |
|
38 |
* |
|
39 |
* Rewrites the provided argument with the interrupt vector it gets. |
|
40 |
* |
|
41 |
* This function decisively reduces the complexity of an interrupt cycle, allowing |
|
42 |
* for each menu to have its own, simplified interrupt cycle. |
|
43 |
* @param p Pointer where interrupt vector will be saved |
|
44 |
*/ |
|
31 | 45 |
int get_interrupts_vector(uint64_t *p); |
32 | 46 |
|
33 | 47 |
/** |
Also available in: Unified diff