This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
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
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |