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.
_______________________________________________ bugs mailing list bugs@rtems.org http://lists.rtems.org/mailman/listinfo/bugs