Project

General

Profile

Revision 339

more changes

View differences:

timer.h
11 11
/** @brief Timer 0 IRQ line */
12 12
#define TIMER0_IRQ     0
13 13

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

  
23
/**
24
 * @brief Timer interrupt handler. Increases interrupt counter.
25
 */
16 26
void (timer_int_handler)(void);
17 27

  
28
/**
29
 * @brief Get number of timer interrupts.
30
 * @return  Number of timer interrupts.
31
 */
18 32
uint32_t (timer_get_no_interrupts)(void);
19 33

  
20 34
/**

Also available in: Unified diff