Interface for watchdog drivers.
More...
Interface for watchdog drivers.
A driver embeds a struct pbl_watchdog in its instance, sets it up with PBL_WATCHDOG_STATE_DEFINE() and PBL_WATCHDOG_INIT(), and implements the struct pbl_watchdog_ops the class calls.
◆ pbl_watchdog
◆ PBL_WATCHDOG_INIT
| #define PBL_WATCHDOG_INIT |
( |
|
sym, |
|
|
|
_name, |
|
|
|
_parent, |
|
|
|
_ops |
|
) |
| |
Value: { \
.ops = (_ops), \
}
#define PBL_DEVICE_INIT_CLASS(sym, _name, _init, _parent, _cls)
Initializer for the struct pbl_device of device instance sym, in class _cls.
Definition device.h:153
Initializer of a watchdog device.
- Parameters
-
| sym | Symbol of the device. |
| _name | Name. |
| _parent | Parent device, or nullptr. |
| _ops | Driver operations. |
◆ PBL_WATCHDOG_STATE_DEFINE
Define the state of a watchdog device.
- Parameters
-