]> oss.titaniummirror.com Git - msp430-libc.git/blobdiff - src/stdlib/__low_level_init.S
Imported msp430-libc-20100207
[msp430-libc.git] / src / stdlib / __low_level_init.S
diff --git a/src/stdlib/__low_level_init.S b/src/stdlib/__low_level_init.S
new file mode 100644 (file)
index 0000000..42cf153
--- /dev/null
@@ -0,0 +1,13 @@
+/*****************************************************************
+ * Initialize peripherial, particularly disable watchdog
+ * can be overwriten by user function with the same name
+ *****************************************************************/
+        .section .init3, "ax", @progbits
+
+        .weak   __low_level_init
+        .func   __low_level_init
+
+__low_level_init:
+        mov     #0x5a80, &__WDTCTL
+
+        .endfunc