openpcd/openpicc/application/tc_cdiv.h @ master
1 |
#ifndef _TC_CDIV_H
|
---|---|
2 |
#define _TC_CDIV_H
|
3 |
|
4 |
#include "openpicc.h"
|
5 |
#include <sys/types.h>
|
6 |
#include <lib_AT91SAM7.h>
|
7 |
|
8 |
extern AT91PS_TCB tcb; |
9 |
|
10 |
extern void __ramfunc tc_cdiv_phase_add(int16_t inc); |
11 |
extern void __ramfunc tc_cdiv_set_divider(u_int16_t div); |
12 |
|
13 |
static inline void tc_cdiv_phase_inc(void) |
14 |
{
|
15 |
tc_cdiv_phase_add(1); |
16 |
}
|
17 |
|
18 |
static inline void tc_cdiv_phase_dec(void) |
19 |
{
|
20 |
tc_cdiv_phase_add(-1); |
21 |
}
|
22 |
|
23 |
extern void tc_cdiv_print(void); |
24 |
extern void tc_cdiv_init(void); |
25 |
extern void tc_cdiv_fini(void); |
26 |
extern void tc_cdiv_reset(void); |
27 |
#endif
|