mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
SAM WDT: Rename up_wdginitialize() functions to something more appropriate for the internal OS interface.
This commit is contained in:
@@ -648,7 +648,7 @@ static int sam_ioctl(FAR struct watchdog_lowerhalf_s *lower, int cmd,
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_wdginitialize
|
* Name: sam_wdt_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Initialize the WDT watchdog time. The watchdog timer is initialized and
|
* Initialize the WDT watchdog time. The watchdog timer is initialized and
|
||||||
@@ -663,7 +663,7 @@ static int sam_ioctl(FAR struct watchdog_lowerhalf_s *lower, int cmd,
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int up_wdginitialize(void)
|
int sam_wdt_initialize(void)
|
||||||
{
|
{
|
||||||
FAR struct sam_lowerhalf_s *priv = &g_wdtdev;
|
FAR struct sam_lowerhalf_s *priv = &g_wdtdev;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/sama5/sam_wdt.h
|
* arch/arm/src/sama5/sam_wdt.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2013, 2016 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -66,6 +66,26 @@ extern "C"
|
|||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Name: sam_wdt_initialize()
|
||||||
|
*
|
||||||
|
* Description:
|
||||||
|
* Perform architecture-specific initialization of the Watchdog hardware.
|
||||||
|
* This interface should be provided by all configurations using
|
||||||
|
* to avoid exposed platform-dependent logic.
|
||||||
|
*
|
||||||
|
* At a minimum, this function should call watchdog_register().
|
||||||
|
*
|
||||||
|
* Input parameters:
|
||||||
|
* None
|
||||||
|
*
|
||||||
|
* Returned Value:
|
||||||
|
* Zero on success; a negated errno value on failure.
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
int sam_wdt_initialize(void);
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -648,7 +648,7 @@ static int sam_ioctl(FAR struct watchdog_lowerhalf_s *lower, int cmd,
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_wdginitialize
|
* Name: sam_rswdt_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Initialize the RSWDT watchdog time. The watchdog timer is initialized and
|
* Initialize the RSWDT watchdog time. The watchdog timer is initialized and
|
||||||
@@ -663,7 +663,7 @@ static int sam_ioctl(FAR struct watchdog_lowerhalf_s *lower, int cmd,
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int up_wdginitialize(void)
|
int sam_rswdt_initialize(void)
|
||||||
{
|
{
|
||||||
FAR struct sam_lowerhalf_s *priv = &g_wdtdev;
|
FAR struct sam_lowerhalf_s *priv = &g_wdtdev;
|
||||||
|
|
||||||
|
|||||||
@@ -648,7 +648,7 @@ static int sam_ioctl(FAR struct watchdog_lowerhalf_s *lower, int cmd,
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_wdginitialize
|
* Name: sam_wdt_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Initialize the WDT watchdog time. The watchdog timer is initialized and
|
* Initialize the WDT watchdog time. The watchdog timer is initialized and
|
||||||
@@ -663,7 +663,7 @@ static int sam_ioctl(FAR struct watchdog_lowerhalf_s *lower, int cmd,
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int up_wdginitialize(void)
|
int sam_wdt_initialize(void)
|
||||||
{
|
{
|
||||||
FAR struct sam_lowerhalf_s *priv = &g_wdtdev;
|
FAR struct sam_lowerhalf_s *priv = &g_wdtdev;
|
||||||
|
|
||||||
|
|||||||
@@ -66,6 +66,46 @@ extern "C"
|
|||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Name: sam_wdt_initialize()
|
||||||
|
*
|
||||||
|
* Description:
|
||||||
|
* Perform architecture-specific initialization of the WDT hardware.
|
||||||
|
* This interface should be provided by all configurations using
|
||||||
|
* to avoid exposed platform-dependent logic.
|
||||||
|
*
|
||||||
|
* At a minimum, this function should call watchdog_register().
|
||||||
|
*
|
||||||
|
* Input parameters:
|
||||||
|
* None
|
||||||
|
*
|
||||||
|
* Returned Value:
|
||||||
|
* Zero on success; a negated errno value on failure.
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
int sam_wdt_initialize(void);
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Name: sam_rswdt_initialize()
|
||||||
|
*
|
||||||
|
* Description:
|
||||||
|
* Perform architecture-specific initialization of the RSWDT hardware.
|
||||||
|
* This interface should be provided by all configurations using
|
||||||
|
* to avoid exposed platform-dependent logic.
|
||||||
|
*
|
||||||
|
* At a minimum, this function should call watchdog_register().
|
||||||
|
*
|
||||||
|
* Input parameters:
|
||||||
|
* None
|
||||||
|
*
|
||||||
|
* Returned Value:
|
||||||
|
* Zero on success; a negated errno value on failure.
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
int sam_rswdt_initialize(void);
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user