root / proj / include / interrupts_func.h @ 176
History | View | Annotate | Download (832 Bytes)
1 | 154 | up20180655 | #ifndef INTERRUPTS_FUNC_H_INCLUDED
|
---|---|---|---|
2 | #define INTERRUPTS_FUNC_H_INCLUDED
|
||
3 | |||
4 | #include <stdint.h> |
||
5 | |||
6 | /**
|
||
7 | * @brief Subscribes all drivers used (timer->keyboard->mouse)
|
||
8 | * @return ERROR_CODE code representing the result of the operation, SUCCESS code is returned if everything is OK
|
||
9 | * @see {_ERRORS_H_::errors}
|
||
10 | */
|
||
11 | int (subscribe_all)(void); |
||
12 | |||
13 | /**
|
||
14 | * @brief Unsubscribes all subscribed interrupts
|
||
15 | * @return ERROR_CODE code representing the result of the operation, SUCCESS code is returned if everything is OK
|
||
16 | * @see {_ERRORS_H_::errors}
|
||
17 | */
|
||
18 | int (unsubscribe_all)(void); |
||
19 | |||
20 | /**
|
||
21 | * @brief Calls interrupt handler corresponding to the bit specified by the argument.
|
||
22 | * @param handler Interrupt handler to call
|
||
23 | */
|
||
24 | void interrupt_handler(uint8_t handler);
|
||
25 | |||
26 | #endif /* end of include guard: INTERRUPTS_FUNC_H_INCLUDED */ |