RTEMS | aarch64/raspberrypi: Add Watchdog Timer driver (!120)
Kinsey Moore (@opticron)
gitlab at rtems.org
Tue Aug 6 20:05:17 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_110577
> + */
> +
> +#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_ms)
This should use an explicitly sized type. In this case, uint32_t is appropriate.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/120#note_110577
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/20240806/35c33a1d/attachment.htm>
More information about the bugs
mailing list