diff --git a/arch/arm/src/sama5/sam_wdt.c b/arch/arm/src/sama5/sam_wdt.c index 6868b573c60..d14f45c1983 100644 --- a/arch/arm/src/sama5/sam_wdt.c +++ b/arch/arm/src/sama5/sam_wdt.c @@ -648,7 +648,7 @@ static int sam_ioctl(FAR struct watchdog_lowerhalf_s *lower, int cmd, ****************************************************************************/ /**************************************************************************** - * Name: up_wdginitialize + * Name: sam_wdt_initialize * * Description: * 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; diff --git a/arch/arm/src/sama5/sam_wdt.h b/arch/arm/src/sama5/sam_wdt.h index 6f99082e163..0f9eab7b75b 100644 --- a/arch/arm/src/sama5/sam_wdt.h +++ b/arch/arm/src/sama5/sam_wdt.h @@ -1,7 +1,7 @@ /**************************************************************************** * 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 * * Redistribution and use in source and binary forms, with or without @@ -66,6 +66,26 @@ extern "C" * 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 #if defined(__cplusplus) } diff --git a/arch/arm/src/samv7/sam_rswdt.c b/arch/arm/src/samv7/sam_rswdt.c index 61593a54c4d..20ea3c21834 100644 --- a/arch/arm/src/samv7/sam_rswdt.c +++ b/arch/arm/src/samv7/sam_rswdt.c @@ -648,7 +648,7 @@ static int sam_ioctl(FAR struct watchdog_lowerhalf_s *lower, int cmd, ****************************************************************************/ /**************************************************************************** - * Name: up_wdginitialize + * Name: sam_rswdt_initialize * * Description: * 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; diff --git a/arch/arm/src/samv7/sam_wdt.c b/arch/arm/src/samv7/sam_wdt.c index 3f8e858ead3..8d638066820 100644 --- a/arch/arm/src/samv7/sam_wdt.c +++ b/arch/arm/src/samv7/sam_wdt.c @@ -648,7 +648,7 @@ static int sam_ioctl(FAR struct watchdog_lowerhalf_s *lower, int cmd, ****************************************************************************/ /**************************************************************************** - * Name: up_wdginitialize + * Name: sam_wdt_initialize * * Description: * 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; diff --git a/arch/arm/src/samv7/sam_wdt.h b/arch/arm/src/samv7/sam_wdt.h index d5d7c50728b..f5ee97a2479 100644 --- a/arch/arm/src/samv7/sam_wdt.h +++ b/arch/arm/src/samv7/sam_wdt.h @@ -66,6 +66,46 @@ extern "C" * 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 #if defined(__cplusplus) }