sam7fc/include/at91_tc1.h

19 lines
298 B
C
Raw Normal View History

2008-02-03 21:41:39 +01:00
#ifndef RC_PPM_H_
#define RC_PPM_H_
#define MAX_CHANNELS 8
2008-02-04 18:19:25 +01:00
#define RC_CAL_START 0
#define RC_CAL_END 1
2008-02-03 21:41:39 +01:00
struct rc_values {
2008-02-04 18:19:25 +01:00
int16_t chan[MAX_CHANNELS];
2008-02-03 21:41:39 +01:00
};
2008-02-04 18:19:25 +01:00
uint32_t rcontrol_getvalues(struct rc_values *rc);
void rcontrol_calibrate(uint32_t mode);
2008-02-03 21:41:39 +01:00
void at91_tc1_init(void);
#endif /*RC_PPM_H_*/