summaryrefslogtreecommitdiff
path: root/openpicc/application/tc_cdiv.h
blob: d5744f97f785b13b4908325900aa13c99b9686d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef _TC_CDIV_H
#define _TC_CDIV_H

#include "openpicc.h"
#include <sys/types.h>
#include <lib_AT91SAM7.h>

static AT91PS_TCB tcb;

extern void tc_cdiv_phase_add(int16_t inc);
extern void tc_cdiv_set_divider(u_int16_t div);

static inline void tc_cdiv_phase_inc(void)
{
       tc_cdiv_phase_add(1);
}

static inline void tc_cdiv_phase_dec(void)
{
       tc_cdiv_phase_add(-1);
}

extern void tc_cdiv_print(void);
extern void tc_cdiv_init(void);
extern void tc_cdiv_fini(void);

#endif
personal git repositories of Harald Welte. Your mileage may vary