Fix PWM prescaler for servos_direct to match timer0 for now

This commit is contained in:
Allen Ibara
2009-05-22 07:26:35 +00:00
parent 05648c5041
commit 1f53d34a04
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -53,6 +53,10 @@ void actuators_init ( void ) {
/* set servo refresh rate */
PWMMR0 = SERVOS_PERIOD;
/* FIXME: For now, this prescaler needs to match the TIMER0 prescaler, as the
higher level code treats them the same */
PWMPR = 1;
/* enable all 6 PWM outputs in single edge mode*/
PWMPCR = 0
#if defined PWM_SERVO_0
+1 -1
View File
@@ -6,7 +6,7 @@
#include "servos_direct_hw.h"
#define CSC_SERVOS_NB 4
#define SERVOS_PERIOD (2 * SYS_TICS_OF_SEC((1./250.))); /* 250 Hz */
#define SERVOS_PERIOD (SYS_TICS_OF_SEC((1./250.))); /* 250 Hz */
void csc_servos_init(void)
{