RTEMS | bsp/aarch64/raspberrypi4: Add PWM peripheral support (!509)
Shaunak Datar (@skdatar)
gitlab at rtems.org
Wed Jun 18 15:51:36 UTC 2025
Shaunak Datar commented on a discussion on bsps/aarch64/raspberrypi/include/bsp/raspberrypi-pwm.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/509#note_124860
> +#define C_PWEN1 BSP_BIT32(0) /**< Channel 1 enable output */
> +/** @} */
>
> -#define CM_PWM_CTL_DISABLE ( CM_PWM_PASSWD | CM_PWM_CTL_SRC_OSC )
>
> +/**
> + * @brief Set PWM clock divider.
> + * @param divisor 1 – 4095; PWMCLK = 19.2 MHz / @p divisor.
> + * @retval RTEMS_SUCCESSFUL OK
> + * @retval RTEMS_INVALID_NUMBER 0 or >4095
> + */
> rtems_status_code rpi_pwm_set_clock( uint32_t divisor );
>
> +/**
> + * @brief Update duty-cycle register.
> + * @param master Selects the hardware instance to be used (0 = PWM0, 1 = PWM1)
will make the change
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/509#note_124860
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/20250618/0bbebf0b/attachment.htm>
More information about the bugs
mailing list