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

Shaunak Datar (@skdatar) gitlab at rtems.org
Thu Aug 7 15:22:06 UTC 2025




Shaunak Datar commented on a discussion on user/bsps/aarch64/raspberrypi4.md: https://gitlab.rtems.org/rtems/docs/rtems-docs/-/merge_requests/178#note_128388

 >  
 > +## 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
 > +  */

Done

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/docs/rtems-docs/-/merge_requests/178#note_128388
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/74ee3a75/attachment-0001.htm>


More information about the bugs mailing list