Skip to content

Commit 44dbb4e

Browse files
wdfk-progRbb666
authored andcommitted
[stm32] Modify MIN_PERIOD and MIN_PULSE to Allow PWM Duty Cycle of 0%
Co-authored-by: wdfk-prog <[email protected]>
1 parent 01e4caf commit 44dbb4e

File tree

1 file changed

+2
-2
lines changed
  • bsp/stm32/libraries/HAL_Drivers/drivers

1 file changed

+2
-2
lines changed

bsp/stm32/libraries/HAL_Drivers/drivers/drv_pwm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
#include <drv_log.h>
2323

2424
#define MAX_PERIOD 65535
25-
#define MIN_PERIOD 3
26-
#define MIN_PULSE 2
25+
#define MIN_PERIOD 1
26+
#define MIN_PULSE 1
2727

2828
enum
2929
{

0 commit comments

Comments
 (0)