[rtems commit] bsp/atsam: Do not disable the WDT

Sebastian Huber sebh at rtems.org
Thu Jun 13 06:49:21 UTC 2019


Module:    rtems
Branch:    master
Commit:    d7d0bba8cca6c7b96eab613e01bdfabb31f3f8c5
Changeset: http://git.rtems.org/rtems/commit/?id=d7d0bba8cca6c7b96eab613e01bdfabb31f3f8c5

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Jun 13 08:44:04 2019 +0200

bsp/atsam: Do not disable the WDT

The watchdog timer (WDT) can be configure only once.  Do not touch it in
the BSP since the application may want to use it.

---

 bsps/arm/atsam/net/if_atsam.c        | 3 ---
 bsps/arm/atsam/start/bspstarthooks.c | 1 -
 2 files changed, 4 deletions(-)

diff --git a/bsps/arm/atsam/net/if_atsam.c b/bsps/arm/atsam/net/if_atsam.c
index 75b1f95..9665aa1 100644
--- a/bsps/arm/atsam/net/if_atsam.c
+++ b/bsps/arm/atsam/net/if_atsam.c
@@ -856,9 +856,6 @@ static void if_atsam_init(void *arg)
 	sc->arpcom.ac_if.if_flags |= IFF_RUNNING;
 	sc->interrupt_number = GMAC_IRQn;
 
-	/* Disable Watchdog */
-	WDT_Disable(WDT);
-
 	/* Enable Peripheral Clock */
 	if ((PMC->PMC_PCSR1 & (1u << 7)) != (1u << 7)) {
 		PMC->PMC_PCER1 = 1 << 7;
diff --git a/bsps/arm/atsam/start/bspstarthooks.c b/bsps/arm/atsam/start/bspstarthooks.c
index 697ec88..6fb62c0 100644
--- a/bsps/arm/atsam/start/bspstarthooks.c
+++ b/bsps/arm/atsam/start/bspstarthooks.c
@@ -152,5 +152,4 @@ void BSP_START_TEXT_SECTION bsp_start_hook_1(void)
   SCB_CleanDCache();
   SCB_InvalidateICache();
   bsp_start_clear_bss();
-  WDT_Disable(WDT);
 }



More information about the vc mailing list