summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5090774)
The PWM frequency should be different than the ADC frequency (125 kHz)
in order to measure in different parts of the PWM cycle (I should have
added a low-pass filter to the ADC inputs, but whatever :-)
void timer_start_adcs();
/* pwm.c */
void timer_start_adcs();
/* pwm.c */
+#define PWM_MAX 0x1E4 /* This should be different than ADC frequency 125 kHz */
void init_pwm();
void susp_pwm();
void init_pwm();
void susp_pwm();