Merge branch 'update_rate' of https://github.com/sjwilks/Firmware into ardrone

This commit is contained in:
Lorenz Meier
2012-09-29 12:46:20 +02:00
2 changed files with 44 additions and 22 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ static void
pwm_timer_set_rate(unsigned timer, unsigned rate)
{
/* configure the timer to update at the desired rate */
rARR(timer) = 1000000 / pwm_update_rate;
rARR(timer) = 1000000 / rate;
/* generate an update event; reloads the counter and all registers */
rEGR(timer) = GTIM_EGR_UG;