The latest development version of this page may be more current than this released 0.4.0 version.

PWM Output

Function Overview

Upon startup, this application performs the following operations:

  1. Initializes the PWM controller driver

  2. Binds and initializes GPIO 28 (PB12) to PWM channel 0

  3. Initializes PWM channel 0 in standalone output mode with specific parameters

  4. Starts standalone output on PWM channel 0

Environment Requirements

  1. Demo uses an EVB board

  2. board with onboard LED bind with the configured GPIO

Compilation and Flashing

Example location: examples/peripheral/pwm

For compilation and flashing instructions, refer to: Quick Start Guide