Documentation | user/bsp/aarch64: Add PWM documentation (!178)

Kinsey Moore (@opticron) gitlab at rtems.org
Thu Aug 7 14:01:44 UTC 2025




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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250807/461d9800/attachment-0001.htm>


More information about the bugs mailing list