diff options
author | Stéphane D'Alu <sdalu@sdalu.com> | 2016-11-24 12:07:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-24 12:07:58 +0100 |
commit | 0c9313ee3db5fd2eb75cbf1c9df9313e316d5123 (patch) | |
tree | 3883072feeb6cec9b20cdca06c81219d5a9c4cbf | |
parent | 5c85f5a7cea3a08662df1ab95d837d32982eecda (diff) | |
download | ChibiOS-Contrib-0c9313ee3db5fd2eb75cbf1c9df9313e316d5123.tar.gz ChibiOS-Contrib-0c9313ee3db5fd2eb75cbf1c9df9313e316d5123.tar.bz2 ChibiOS-Contrib-0c9313ee3db5fd2eb75cbf1c9df9313e316d5123.zip |
Wrong roundup for prescaler 7
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_pwm_lld.c | 2 |
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
};
|