ruuvi.drivers.c ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
Loading...
Searching...
No Matches
ruuvi_interface_watchdog.h
Go to the documentation of this file.
1#ifndef RUUVI_INTERFACE_WATCHDOG_H
2#define RUUVI_INTERFACE_WATCHDOG_H
3
31#include "ruuvi_driver_error.h"
32#include <stdbool.h>
33
35#if RI_WATCHDOG_ENABLED
36#define RUUVI_NRF5_SDK15_WATCHDOG_ENABLED RUUVI_NRF5_SDK15_ENABLED
37#endif
38
44typedef void (*wdt_evt_handler_t) (void);
45
57rd_status_t ri_watchdog_init (const uint32_t interval_ms,
58 const wdt_evt_handler_t handler);
59
65
66#endif
uint32_t rd_status_t
bitfield for representing errors
Header to enable and disable module compilation.
Ruuvi error codes and error check function.
rd_status_t ri_watchdog_init(const uint32_t interval_ms, const wdt_evt_handler_t handler)
void(* wdt_evt_handler_t)(void)
Enable implementation selected by application.
rd_status_t ri_watchdog_feed(void)