RTEMS | aarch64/raspberrypi: Add Watchdog Timer driver (!120)
Kinsey Moore (@opticron)
gitlab at rtems.org
Thu Aug 1 14:04:40 UTC 2024
Kinsey Moore started a new discussion on bsps/aarch64/raspberrypi/start/watchdog.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/120#note_110309
> +#include <bsp/raspberrypi.h>
> +#include <bsp/watchdog.h>
> +
> +#define PM_WDOG BCM2835_REG(BCM2711_PM_WDOG)
> +#define PM_RSTC BCM2835_REG(BCM2711_PM_RSTC)
> +
> +int raspberrypi_watchdog_timeout;
> +
> +void raspberrypi_watchdog_init()
> +{
> + raspberrypi_watchdog_timeout = 0;
> +}
> +
> +void raspberrypi_watchdog_start(unsigned int timeout)
> +{
> + raspberrypi_watchdog_timeout = timeout;
Are there any values of timeout which are invalid? The documentation claims that timeout is in seconds, but I would expect some kind of conversion to occur here or in the register write below.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/120#note_110309
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/20240801/dbf91d78/attachment.htm>
More information about the bugs
mailing list