mirror of
https://github.com/apache/nuttx.git
synced 2026-08-19 04:28:21 +00:00
SAMA5 PWM: Costmetic
This commit is contained in:
parent
ff76ebfd31
commit
39c4ecbcd0
1 changed files with 2 additions and 2 deletions
|
|
@ -1161,9 +1161,9 @@ static unsigned int pwm_clk_prescaler_log2(uint32_t mck, uint32_t fclk)
|
|||
unsigned int prelog2;
|
||||
|
||||
unscaled = mck / fclk;
|
||||
prelog2 = 0;
|
||||
prelog2 = 0;
|
||||
|
||||
while (unscaled >= 256)
|
||||
while (unscaled >= 256 && prelog2 < 11)
|
||||
{
|
||||
unscaled >>= 1;
|
||||
prelog2++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue