root / lab2 / include / timer.h @ 351
History | View | Annotate | Download (546 Bytes)
1 | 196 | up20180642 | /**
|
---|---|---|---|
2 | * This file concerns everything related to the timer
|
||
3 | */
|
||
4 | |||
5 | #ifndef TIMER_H_INCLUDED
|
||
6 | #define TIMER_H_INCLUDED
|
||
7 | |||
8 | //7.1 timer_test_read_config()
|
||
9 | int (timer_get_conf)(uint8_t timer, uint8_t *st);
|
||
10 | int (timer_display_conf)(uint8_t timer, uint8_t st, enum timer_status_field field); |
||
11 | //7.2 timer_test_time_base()
|
||
12 | int (timer_set_frequency)(uint8_t timer, uint32_t freq);
|
||
13 | //7.3 timer_test_int()
|
||
14 | void (timer_int_handler)(void); |
||
15 | int (subscribe_timer_interrupt)(uint8_t interrupt_bit, int *interrupt_id); |
||
16 | uint32_t no_interrupts; |
||
17 | |||
18 | #endif //TIMER_H_INCLUDED |