aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/MSP430/hal_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/platforms/MSP430/hal_lld.c')
-rw-r--r--os/hal/platforms/MSP430/hal_lld.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/os/hal/platforms/MSP430/hal_lld.c b/os/hal/platforms/MSP430/hal_lld.c
index 1acb4d474..0e8ac71dc 100644
--- a/os/hal/platforms/MSP430/hal_lld.c
+++ b/os/hal/platforms/MSP430/hal_lld.c
@@ -56,9 +56,10 @@
*/
void hal_lld_init(void) {
- /*
- * Clock sources setup.
- */
+ /* RTC initially stopped.*/
+ WDTCTL = 0x5A80;
+
+ /* Clock sources setup.*/
DCOCTL = VAL_DCOCTL;
BCSCTL1 = VAL_BCSCTL1;
#if MSP430_USE_CLOCK == MSP430_CLOCK_SOURCE_XT2CLK