Project

General

Profile

Download (465 Bytes) Statistics
| Branch: | Tag: | Revision:
1
#ifndef _TC_CDIV_H
2
#define _TC_CDIV_H
3

    
4
#include <sys/types.h>
5
#include <lib_AT91SAM7.h>
6

    
7
static AT91PS_TCB tcb;
8

    
9
extern void tc_cdiv_phase_add(int16_t inc);
10
extern void tc_cdiv_set_divider(uint16_t div);
11

    
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
(28-28/40)
Add picture from clipboard (Maximum size: 48.8 MB)