mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
Cosmetic updates.
This commit is contained in:
@@ -49,7 +49,8 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
/* Configuration ********************************************************/
|
|
||||||
|
/* Configuration ************************************************************/
|
||||||
|
|
||||||
#ifndef CONFIG_PREALLOC_WDOGS
|
#ifndef CONFIG_PREALLOC_WDOGS
|
||||||
# define CONFIG_PREALLOC_WDOGS 32
|
# define CONFIG_PREALLOC_WDOGS 32
|
||||||
@@ -69,7 +70,8 @@
|
|||||||
# error CONFIG_WDOG_INTRESERVE >= CONFIG_PREALLOC_WDOGS
|
# error CONFIG_WDOG_INTRESERVE >= CONFIG_PREALLOC_WDOGS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Watchdog Definitions *************************************************/
|
/* Watchdog Definitions *****************************************************/
|
||||||
|
|
||||||
/* Flag bits for the flags field of struct wdog_s */
|
/* Flag bits for the flags field of struct wdog_s */
|
||||||
|
|
||||||
#define WDOGF_ACTIVE (1 << 0) /* Bit 0: 1=Watchdog is actively timing */
|
#define WDOGF_ACTIVE (1 << 0) /* Bit 0: 1=Watchdog is actively timing */
|
||||||
@@ -102,6 +104,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Type Declarations
|
* Public Type Declarations
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* The arguments are passed as scalar wdparm_t values. For systems where
|
/* The arguments are passed as scalar wdparm_t values. For systems where
|
||||||
* the sizeof(pointer) < sizeof(uint32_t), the following union defines the
|
* the sizeof(pointer) < sizeof(uint32_t), the following union defines the
|
||||||
* alignment of the pointer within the uint32_t. For example, the SDCC
|
* alignment of the pointer within the uint32_t. For example, the SDCC
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ int timer_release(FAR struct posix_timer_s *timer)
|
|||||||
{
|
{
|
||||||
/* Some sanity checks */
|
/* Some sanity checks */
|
||||||
|
|
||||||
if (!timer)
|
if (timer == NULL)
|
||||||
{
|
{
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ int wd_delete(WDOG_ID wdog)
|
|||||||
{
|
{
|
||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
|
|
||||||
DEBUGASSERT(wdog);
|
DEBUGASSERT(wdog != NULL);
|
||||||
|
|
||||||
/* The following steps are atomic... the watchdog must not be active when
|
/* The following steps are atomic... the watchdog must not be active when
|
||||||
* it is being deallocated.
|
* it is being deallocated.
|
||||||
|
|||||||
Reference in New Issue
Block a user