RTEMS | bsp/aarch64/raspberrypi4: Add PWM peripheral support (!509)
Shaunak Datar (@skdatar)
gitlab at rtems.org
Mon Jun 16 10:44:10 UTC 2025
Shaunak Datar commented on a discussion on bsps/aarch64/raspberrypi/pwm/raspberrypi-pwm.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/509#note_124701
> + }
> +
> + return RTEMS_SUCCESSFUL;
> +}
> +
> +rtems_status_code rpi_pwm_init(
> + raspberrypi_pwm_master master,
> + raspberrypi_pwm_channel channel,
> + uint32_t divisor,
> + uint32_t range,
> + uint32_t data
> +)
> +{
> + rtems_status_code sc;
> +
> + sc = rpi_pwm_set_clock( divisor );
Yes, you're right the clock is not master dependant. Would it be better to make the clock function non-static and have the user first set the clock and then initialise the pwm master to use?
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/509#note_124701
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/20250616/23182bd4/attachment.htm>
More information about the bugs
mailing list