Kinsey Moore started a new discussion on user/bsps/aarch64/raspberrypi4.md: https://gitlab.rtems.org/rtems/docs/rtems-docs/-/merge_requests/178#note_128372 > > +## PWM Driver > + > +The Raspberry Pi has 2 PWM masters PWM0 and PWM1. > +Each of these masters has 2 channels each PWMx_0 and PWMx_1. > +The PWM driver allows the user to configure the PWM clock,Data and Range. > + > +```c > +#include "bsp/raspberrypi-pwm.h" > +void pwm_example(){ > + /* Set the Clock divisor where 0 < DIVI < 4096. */ > + rtems_status_code sc = rpi_pwm_set_clock(DIVI); > + > + /* Initialise the master and the channel with duty and range. > + * The DUTY cannot be greater than the RANGE > + */ For multiline comments, the first and last lines should be empty. Also, the asterisks (`*`) should be aligned, so lines after the first one need an extra leading space. -- View it on GitLab: https://gitlab.rtems.org/rtems/docs/rtems-docs/-/merge_requests/178#note_128372 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
