From 0c9313ee3db5fd2eb75cbf1c9df9313e316d5123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20D=27Alu?= Date: Thu, 24 Nov 2016 12:07:58 +0100 Subject: Wrong roundup for prescaler 7 --- os/hal/ports/NRF5/NRF51822/hal_pwm_lld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/ports/NRF5/NRF51822') diff --git a/os/hal/ports/NRF5/NRF51822/hal_pwm_lld.c b/os/hal/ports/NRF5/NRF51822/hal_pwm_lld.c index 8f3ae25..09c03a1 100644 --- a/os/hal/ports/NRF5/NRF51822/hal_pwm_lld.c +++ b/os/hal/ports/NRF5/NRF51822/hal_pwm_lld.c @@ -78,7 +78,7 @@ static const uint8_t pwm_margin_by_prescaler[] = { (PWM_GPIOTE_DECISION_TIME + 15) >> 4, (PWM_GPIOTE_DECISION_TIME + 31) >> 5, (PWM_GPIOTE_DECISION_TIME + 63) >> 6, - (PWM_GPIOTE_DECISION_TIME + 128) >> 7, + (PWM_GPIOTE_DECISION_TIME + 127) >> 7, (PWM_GPIOTE_DECISION_TIME + 255) >> 8, (PWM_GPIOTE_DECISION_TIME + 511) >> 9 }; -- cgit v1.2.3