15 lines
225 B
C
15 lines
225 B
C
|
#ifndef RC_PPM_H_
|
||
|
#define RC_PPM_H_
|
||
|
|
||
|
#define MAX_CHANNELS 8
|
||
|
|
||
|
struct rc_values {
|
||
|
int16_t ch[MAX_CHANNELS];
|
||
|
uint32_t count;
|
||
|
};
|
||
|
|
||
|
void at91_tc1_init(void);
|
||
|
uint32_t rc_ppm_getvalues(struct rc_values *rc);
|
||
|
|
||
|
#endif /*RC_PPM_H_*/
|