Remove all implementatinos of up_wdginitialize(). It is no longer used.
This commit is contained in:
parent
c364faeefc
commit
8ace1e3be2
@ -73,10 +73,6 @@ ifeq ($(CONFIG_ADC),y)
|
|||||||
CSRCS += stm32_adc.c
|
CSRCS += stm32_adc.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_WATCHDOG),y)
|
|
||||||
CSRCS += stm32_watchdog.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_STM32_PHYINIT),y)
|
ifeq ($(CONFIG_STM32_PHYINIT),y)
|
||||||
CSRCS += stm32_phyinit.c
|
CSRCS += stm32_phyinit.c
|
||||||
endif
|
endif
|
||||||
|
@ -72,8 +72,4 @@ ifeq ($(CONFIG_USBDEV_COMPOSITE),y)
|
|||||||
CSRCS += stm32_composite.c
|
CSRCS += stm32_composite.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_WATCHDOG),y)
|
|
||||||
CSRCS += stm32_watchdog.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(TOPDIR)/configs/Board.mk
|
include $(TOPDIR)/configs/Board.mk
|
||||||
|
@ -59,8 +59,4 @@ ifeq ($(CONFIG_USBMSC),y)
|
|||||||
CSRCS += stm32_usbmsc.c
|
CSRCS += stm32_usbmsc.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_WATCHDOG),y)
|
|
||||||
CSRCS += stm32_watchdog.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(TOPDIR)/configs/Board.mk
|
include $(TOPDIR)/configs/Board.mk
|
||||||
|
@ -52,10 +52,6 @@ endif
|
|||||||
ifeq ($(CONFIG_USBMSC),y)
|
ifeq ($(CONFIG_USBMSC),y)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_WATCHDOG),y)
|
|
||||||
CSRCS += stm32_watchdog.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_LIB_BOARDCTL),y)
|
ifeq ($(CONFIG_LIB_BOARDCTL),y)
|
||||||
CSRCS += stm32_appinit.c
|
CSRCS += stm32_appinit.c
|
||||||
endif
|
endif
|
||||||
|
@ -58,10 +58,6 @@ ifeq ($(CONFIG_QENCODER),y)
|
|||||||
CSRCS += stm32_qencoder.c
|
CSRCS += stm32_qencoder.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_WATCHDOG),y)
|
|
||||||
CSRCS += stm32_watchdog.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_LIB_BOARDCTL),y)
|
ifeq ($(CONFIG_LIB_BOARDCTL),y)
|
||||||
CSRCS += stm32_appinit.c
|
CSRCS += stm32_appinit.c
|
||||||
endif
|
endif
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* configs/sam4s-xplained-pro/src/sam4s-xplained-pro.h
|
* configs/sam4s-xplained-pro/src/sam4s-xplained-pro.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved.
|
||||||
* Authors: Gregory Nutt <gnutt@nuttx.org>
|
* Authors: Gregory Nutt <gnutt@nuttx.org>
|
||||||
* Bob Doiron
|
* Bob Doiron
|
||||||
*
|
*
|
||||||
@ -229,5 +229,21 @@ int sam_timerinitialize(void);
|
|||||||
# define sam_timerinitialize() (0)
|
# define sam_timerinitialize() (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Name: sam_watchdog_initialize()
|
||||||
|
*
|
||||||
|
* Description:
|
||||||
|
* Perform architecture-specific initialization of the Watchdog hardware.
|
||||||
|
*
|
||||||
|
* Input parameters:
|
||||||
|
* None
|
||||||
|
*
|
||||||
|
* Returned Value:
|
||||||
|
* Zero on success; a negated errno value on failure.
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
int sam_watchdog_initialize(void);
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
#endif /* __CONFIGS_SAM4S_XPLAINED_SRC_SAM4S_XPLAINED_H */
|
#endif /* __CONFIGS_SAM4S_XPLAINED_SRC_SAM4S_XPLAINED_H */
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* configs/sam4s-xplained-pro/src/sam_boot.c
|
* configs/sam4s-xplained-pro/src/sam_boot.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014-2015 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2014-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
|
||||||
@ -97,7 +97,7 @@ void board_initialize(void)
|
|||||||
#if (defined(CONFIG_SAM34_WDT) && !defined(CONFIG_WDT_DISABLE_ON_RESET))
|
#if (defined(CONFIG_SAM34_WDT) && !defined(CONFIG_WDT_DISABLE_ON_RESET))
|
||||||
/* Configure watchdog timer and enable kicker kernel thread. */
|
/* Configure watchdog timer and enable kicker kernel thread. */
|
||||||
|
|
||||||
DEBUGASSERT(up_wdginitialize() >= 0);
|
DEBUGASSERT(sam_watchdog_initialize() >= 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_ARCH_LEDS
|
#ifndef CONFIG_ARCH_LEDS
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* configs/sam4s-xplained-pro/src/up_watchdog.c
|
* configs/sam4s-xplained-pro/src/up_watchdog.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved.
|
||||||
* Authors: Gregory Nutt <gnutt@nuttx.org>
|
* Authors: Gregory Nutt <gnutt@nuttx.org>
|
||||||
* Bob Doiron
|
* Bob Doiron
|
||||||
*
|
*
|
||||||
@ -164,7 +164,7 @@ errout:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_wdginitialize()
|
* Name: sam_watchdog_initialize()
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Perform architecture-specific initialization of the Watchdog hardware.
|
* Perform architecture-specific initialization of the Watchdog hardware.
|
||||||
@ -173,7 +173,7 @@ errout:
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int up_wdginitialize(void)
|
int sam_watchdog_initialize(void)
|
||||||
{
|
{
|
||||||
#if (defined(CONFIG_SAM34_WDT) && !defined(CONFIG_WDT_DISABLE_ON_RESET))
|
#if (defined(CONFIG_SAM34_WDT) && !defined(CONFIG_WDT_DISABLE_ON_RESET))
|
||||||
int fd;
|
int fd;
|
||||||
|
@ -80,10 +80,6 @@ ifeq ($(CONFIG_ADC),y)
|
|||||||
CSRCS += stm32_adc.c
|
CSRCS += stm32_adc.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_WATCHDOG),y)
|
|
||||||
CSRCS += stm32_watchdog.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
# NOTE: SSD1289 is not supported on the board
|
# NOTE: SSD1289 is not supported on the board
|
||||||
|
|
||||||
ifeq ($(CONFIG_LCD_SSD1289),y)
|
ifeq ($(CONFIG_LCD_SSD1289),y)
|
||||||
|
@ -69,10 +69,6 @@ ifeq ($(CONFIG_WL_CC3000),y)
|
|||||||
CSRCS += stm32_wireless.c
|
CSRCS += stm32_wireless.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_WATCHDOG),y)
|
|
||||||
CSRCS += stm32_watchdog.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_CC3000_PROBES),)
|
ifeq ($(CONFIG_CC3000_PROBES),)
|
||||||
CSRCS += stm32_io.c
|
CSRCS += stm32_io.c
|
||||||
endif
|
endif
|
||||||
|
@ -68,10 +68,6 @@ ifeq ($(CONFIG_CAN),y)
|
|||||||
CSRCS += stm32_can.c
|
CSRCS += stm32_can.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_WATCHDOG),y)
|
|
||||||
CSRCS += stm32_watchdog.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_ARCH_CUSTOM_PMINIT),y)
|
ifeq ($(CONFIG_ARCH_CUSTOM_PMINIT),y)
|
||||||
CSRCS += stm32_pm.c
|
CSRCS += stm32_pm.c
|
||||||
endif
|
endif
|
||||||
|
@ -72,10 +72,6 @@ ifeq ($(CONFIG_LIB_BOARDCTL),y)
|
|||||||
CSRCS += stm32_appinit.c
|
CSRCS += stm32_appinit.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_WATCHDOG),y)
|
|
||||||
CSRCS += stm32_watchdog.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_INPUT_STMPE811),y)
|
ifeq ($(CONFIG_INPUT_STMPE811),y)
|
||||||
CSRCS += stm32_stmpe811.c
|
CSRCS += stm32_stmpe811.c
|
||||||
endif
|
endif
|
||||||
|
@ -77,10 +77,6 @@ ifeq ($(CONFIG_ARCH_FPU),y)
|
|||||||
CSRCS += stm32_ostest.c
|
CSRCS += stm32_ostest.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_WATCHDOG),y)
|
|
||||||
CSRCS += stm32_watchdog.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_INPUT_STMPE811),y)
|
ifeq ($(CONFIG_INPUT_STMPE811),y)
|
||||||
CSRCS += stm32_stmpe811.c
|
CSRCS += stm32_stmpe811.c
|
||||||
endif
|
endif
|
||||||
|
@ -51,8 +51,4 @@ ifeq ($(CONFIG_LIB_BOARDCTL),y)
|
|||||||
CSRCS += stm32_appinit.c
|
CSRCS += stm32_appinit.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_WATCHDOG),y)
|
|
||||||
CSRCS += stm32_watchdog.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(TOPDIR)/configs/Board.mk
|
include $(TOPDIR)/configs/Board.mk
|
||||||
|
@ -60,10 +60,6 @@ ifeq ($(CONFIG_QENCODER),y)
|
|||||||
CSRCS += stm32_qencoder.c
|
CSRCS += stm32_qencoder.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_WATCHDOG),y)
|
|
||||||
CSRCS += stm32_watchdog.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_LIB_BOARDCTL),y)
|
ifeq ($(CONFIG_LIB_BOARDCTL),y)
|
||||||
CSRCS += stm32_appinit.c
|
CSRCS += stm32_appinit.c
|
||||||
endif
|
endif
|
||||||
|
@ -92,10 +92,6 @@ ifeq ($(CONFIG_QENCODER),y)
|
|||||||
CSRCS += stm32_qencoder.c
|
CSRCS += stm32_qencoder.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_WATCHDOG),y)
|
|
||||||
CSRCS += stm32_watchdog.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_NSH_LIBRARY),y)
|
ifeq ($(CONFIG_NSH_LIBRARY),y)
|
||||||
CSRCS += stm32_appinit.c
|
CSRCS += stm32_appinit.c
|
||||||
endif
|
endif
|
||||||
|
@ -60,10 +60,6 @@ ifeq ($(CONFIG_QENCODER),y)
|
|||||||
CSRCS += stm32_qencoder.c
|
CSRCS += stm32_qencoder.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_WATCHDOG),y)
|
|
||||||
CSRCS += stm32_watchdog.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_LIB_BOARDCTL),y)
|
ifeq ($(CONFIG_LIB_BOARDCTL),y)
|
||||||
CSRCS += stm32_appinit.c
|
CSRCS += stm32_appinit.c
|
||||||
endif
|
endif
|
||||||
|
@ -203,9 +203,6 @@ extern "C"
|
|||||||
#define EXTERN extern
|
#define EXTERN extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* "Upper-Half" Watchdog Driver Interfaces
|
|
||||||
****************************************************************************/
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: watchdog_register
|
* Name: watchdog_register
|
||||||
*
|
*
|
||||||
@ -217,9 +214,8 @@ extern "C"
|
|||||||
* When this function is called, the "lower half" driver should be in the
|
* When this function is called, the "lower half" driver should be in the
|
||||||
* disabled state (as if the stop() method had already been called).
|
* disabled state (as if the stop() method had already been called).
|
||||||
*
|
*
|
||||||
* NOTE: Normally, this function would not be called by application code.
|
* NOTE: This function would not be called by application code. Rather it is
|
||||||
* Rather it is called indirectly through the architecture-specific
|
* called indirectly through the architecture-specific interfaces.
|
||||||
* interface up_wdginitialize() described below.
|
|
||||||
*
|
*
|
||||||
* Input parameters:
|
* Input parameters:
|
||||||
* dev path - The full path to the driver to be registers in the NuttX
|
* dev path - The full path to the driver to be registers in the NuttX
|
||||||
@ -256,35 +252,6 @@ FAR void *watchdog_register(FAR const char *path,
|
|||||||
|
|
||||||
void watchdog_unregister(FAR void *handle);
|
void watchdog_unregister(FAR void *handle);
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Platform-Independent "Lower-Half" Watchdog Driver Interfaces
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Architecture-specific Application Interfaces
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: up_wdginitialize()
|
|
||||||
*
|
|
||||||
* 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() which is
|
|
||||||
* described above.
|
|
||||||
*
|
|
||||||
* Input parameters:
|
|
||||||
* None
|
|
||||||
*
|
|
||||||
* Returned Value:
|
|
||||||
* Zero on success; a negated errno value on failure.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
int up_wdginitialize(void);
|
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user