sam7fc/include/at91_tc1.h

22 lines
383 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);
2008-03-11 22:02:06 +01:00
uint32_t rcontrol_getswitches(struct rc_values *rc);
2008-02-04 18:19:25 +01:00
void rcontrol_calibrate(uint32_t mode);
2008-03-10 21:37:56 +01:00
void rcontrol_print_cal(void);
2008-02-04 18:19:25 +01:00
2008-02-03 21:41:39 +01:00
void at91_tc1_init(void);
#endif /*RC_PPM_H_*/