mirror of
https://github.com/apache/nuttx.git
synced 2026-09-01 14:43:02 +00:00
Merged in pnb990/nuttx-kernel-arch/upstream_master (pull request #27)
pwm duty can by zero
This commit is contained in:
commit
4131081e72
1 changed files with 1 additions and 1 deletions
|
|
@ -582,7 +582,7 @@ static int pwm_timer(FAR struct stm32_pwmtimer_s *priv,
|
|||
pwmvdbg("TIM%d channel: %d frequency: %d duty: %08x\n",
|
||||
priv->timid, priv->channel, info->frequency, info->duty);
|
||||
#endif
|
||||
DEBUGASSERT(info->frequency > 0 && info->duty > 0 &&
|
||||
DEBUGASSERT(info->frequency > 0 && info->duty >= 0 &&
|
||||
info->duty < uitoub16(100));
|
||||
|
||||
/* Disable all interrupts and DMA requests, clear all pending status */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue