Project

General

Profile

Statistics
| Revision:

root / lab4 / timer.h @ 90

History | View | Annotate | Download (661 Bytes)

1
/**
2
 * This file concerns everything related to the timer
3
 */
4

    
5
#ifndef TIMER_H_INCLUDED
6
#define TIMER_H_INCLUDED
7

    
8
#include <stdint.h>
9

    
10
/**
11
 * @brief Subscribes Timer Interrupts and disables Minix Default IH
12
 * @param interrupt_bit Bit of Interrupt Vector that will be set when Timer Interrupt is pending
13
 * @param interrupt_id Timer Interrupt ID to specify the Timer Interrupt in other calls
14
 * @return ERROR_CODE code representing the result of the operation, SUCCESS code is returned if everything is OK
15
 * @see {_ERRORS_H_::errors}
16
 */
17
int (subscribe_timer_interrupt)(uint8_t interrupt_bit, int *interrupt_id);
18

    
19
int no_interrupts;
20

    
21
#endif //TIMER_H_INCLUDED