Skip to content

Commit

Permalink
samples: blinky_pwm: decreased min PWM period for blinky sample
Browse files Browse the repository at this point in the history
Blinky PWM sample minimum pwm period was too high for iMX.RT PWM module.
decrease the minimum pwm period so sample will pass pwm calibration
phase.

Fixes #38954

Signed-off-by: Daniel DeGrasse <[email protected]>
  • Loading branch information
danieldegrasse authored and nashif committed Feb 10, 2022
1 parent aa20d87 commit 5094a6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/basic/blinky_pwm/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This application blinks a LED using the :ref:`PWM API <pwm_api>`. See
:ref:`blinky-sample` for a GPIO-based sample.

The LED starts blinking at a 1 Hz frequency. The frequency doubles every 4
seconds until it reaches 64 Hz. The frequency will then be halved every 4
seconds until it reaches 128 Hz. The frequency will then be halved every 4
seconds until it returns to 1 Hz, completing a single blinking cycle. This
faster-then-slower blinking cycle then repeats forever.

Expand Down
2 changes: 1 addition & 1 deletion samples/basic/blinky_pwm/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define PWM_FLAGS 0
#endif

#define MIN_PERIOD_USEC (USEC_PER_SEC / 64U)
#define MIN_PERIOD_USEC (USEC_PER_SEC / 128U)
#define MAX_PERIOD_USEC USEC_PER_SEC

void main(void)
Expand Down

0 comments on commit 5094a6e

Please sign in to comment.