openpcd/firmware/src/os/tc_cdiv.h @ master
1 | ff32f694 | (no author) | #ifndef _TC_CDIV_H
|
---|---|---|---|
2 | #define _TC_CDIV_H
|
||
3 | |||
4 | #include <sys/types.h>
|
||
5 | 5bf2bacd | (no author) | #include <lib_AT91SAM7.h>
|
6 | |||
7 | static AT91PS_TCB tcb; |
||
8 | ff32f694 | (no author) | |
9 | extern void tc_cdiv_phase_add(int16_t inc); |
||
10 | 373c172a | Harald Welte | extern void tc_cdiv_set_divider(uint16_t div); |
11 | ff32f694 | (no author) | |
12 | static inline void tc_cdiv_phase_inc(void) |
||
13 | {
|
||
14 | tc_cdiv_phase_add(1); |
||
15 | }
|
||
16 | |||
17 | static inline void tc_cdiv_phase_dec(void) |
||
18 | {
|
||
19 | tc_cdiv_phase_add(-1); |
||
20 | }
|
||
21 | |||
22 | extern void tc_cdiv_print(void); |
||
23 | extern void tc_cdiv_init(void); |
||
24 | extern void tc_cdiv_fini(void); |
||
25 | |||
26 | #endif
|