aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/NRF5/NRF51822
diff options
context:
space:
mode:
authorStéphane D'Alu <sdalu@sdalu.com>2016-11-24 12:07:58 +0100
committerGitHub <noreply@github.com>2016-11-24 12:07:58 +0100
commit0c9313ee3db5fd2eb75cbf1c9df9313e316d5123 (patch)
tree3883072feeb6cec9b20cdca06c81219d5a9c4cbf /os/hal/ports/NRF5/NRF51822
parent5c85f5a7cea3a08662df1ab95d837d32982eecda (diff)
downloadChibiOS-Contrib-0c9313ee3db5fd2eb75cbf1c9df9313e316d5123.tar.gz
ChibiOS-Contrib-0c9313ee3db5fd2eb75cbf1c9df9313e316d5123.tar.bz2
ChibiOS-Contrib-0c9313ee3db5fd2eb75cbf1c9df9313e316d5123.zip
Wrong roundup for prescaler 7
Diffstat (limited to 'os/hal/ports/NRF5/NRF51822')
-rw-r--r--os/hal/ports/NRF5/NRF51822/hal_pwm_lld.c2
1 files changed, 1 insertions, 1 deletions
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
};