Commit: MSP430: crt0: Remove watchdog disabling code
Nick Clifton
nickc@redhat.com
Tue Sep 8 07:46:00 GMT 2015
Hi Friedrich,
> I'd rather recommend the following:
>
> #include <msp430.h>
>
> static void __attribute__((naked, section(".crt_0001disable_watchdog"), used))
> disable_watchdog (void)
> {
> WDTCTL = WDTPW | WDTHOLD;
> }
>
> The section you're removing the watchdog disabling code from is
> contained in section ".crt_0000start".
> Therefore the section ".crt_0001disable_watchdog" in the code above
> resembles the current situation.
That seems fair - thanks for the update.
Cheers
Nick
More information about the Newlib
mailing list