Project

General

Profile

Statistics
| Revision:

root / proj / include / interrupts_func.h @ 246

History | View | Annotate | Download (809 Bytes)

1
#ifndef INTERRUPTS_FUNC_H_INCLUDED
2
#define INTERRUPTS_FUNC_H_INCLUDED
3

    
4
/**
5
 * @brief Subscribes all drivers used (timer->keyboard->mouse)
6
 * @return ERROR_CODE code representing the result of the operation, SUCCESS code is returned if everything is OK
7
 * @see {_ERRORS_H_::errors}
8
 */
9
int (subscribe_all)(void);
10

    
11
/**
12
 * @brief Unsubscribes all subscribed interrupts
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 (unsubscribe_all)(void);
17

    
18
/**
19
 * @brief Calls interrupt handler corresponding to the bit specified by the argument.
20
 * @param handler Interrupt handler to call
21
 */
22
void interrupt_handler(uint8_t handler);
23

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