Project

General

Profile

Download (540 Bytes) Statistics
| Branch: | Tag: | Revision:
1 1dfa375a henryk
#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 ee1f0214 henryk
extern AT91PS_TCB tcb;
9 1dfa375a henryk
10 ceb64338 henryk
extern void __ramfunc tc_cdiv_phase_add(int16_t inc);
11
extern void __ramfunc tc_cdiv_set_divider(u_int16_t div);
12 1dfa375a henryk
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 5ec39e97 henryk
extern void tc_cdiv_reset(void);
27 1dfa375a henryk
#endif
Add picture from clipboard (Maximum size: 48.8 MB)