Configuration
This is the default configuration of the middleware.
When any of the settings shall be modified, it shall be done in dedicated application config lwwdg_opts.h
file.
Note
Check Getting started to create configuration file.
- group LWWDG_OPT
Default configuration setup.
Defines
-
LWWDG_CFG_ENABLE_WDG_NAME
Enables or disables field in wdg structure to contain watchdog name.
This can be useful for debugging purposes
-
LWWDG_CFG_WDG_NAME_ERR_DEBUG(_wdg_name_)
Macro called if LWWDG_CFG_ENABLE_WDG_NAME is enabled and if watchdog error occurs.
It can be overwritten by the application to print watchdog name.
- Parameters
<em>wdg_name</em> – [in] Watchdog name as defined by lwwdg_set_name function
-
LWWDG_GET_TIME()
Get system time in milliseconds.
It is required to keep reload time
-
LWWDG_CRITICAL_SECTION_DEFINE
Define the critical section.
Used at the beinning of the function, to define potential local variable to keep status of critical section (if already locked)
Note
Default implementation is for Cortex-M
-
LWWDG_CRITICAL_SECTION_LOCK()
Lock the critical section.
Critical section should prevent other tasks or interrupt, to access to the same core.
Easiest is to simply disable the interrupt, since task is normally pretty quick.
Note
Default implementation is for Cortex-M
-
LWWDG_CRITICAL_SECTION_UNLOCK()
Unlock the critical section.
Note
Default implementation is for Cortex-M
-
LWWDG_CFG_ENABLE_WDG_NAME