24 lines
427 B
C
24 lines
427 B
C
#ifndef RC_PPM_H_
|
|
#define RC_PPM_H_
|
|
|
|
#define MAX_CHANNELS 8
|
|
|
|
#define RC_CAL_START 0
|
|
#define RC_CAL_END 1
|
|
#define RC_CAL_LOAD 2
|
|
#define RC_CAL_SAVE 3
|
|
|
|
struct rc_values {
|
|
int16_t chan[MAX_CHANNELS];
|
|
};
|
|
|
|
uint32_t rcontrol_getvalues(struct rc_values *rc);
|
|
uint32_t rcontrol_getswitches(struct rc_values *rc);
|
|
|
|
void rcontrol_calibrate(uint32_t mode);
|
|
void rcontrol_print_cal(void);
|
|
|
|
void at91_tc1_init(void);
|
|
|
|
#endif /*RC_PPM_H_*/
|