[En-Nut-Discussion] Storing Uservalues
Gerd Müller
gmueller at netways.de
Tue Sep 28 12:30:28 CEST 2004
Thank you,
but where is wdt_reset and wdt_enable defined? which headers/libs do I
need?
Gerd
Am Di, den 28.09.2004 schrieb Ole Reinhardt um 12:20:
> Hi Gerd,
>
> > thank you, but how do I define or find spare space in the eeprom? And
> > how can I reboot the device via software?
>
> Spare space should be available from address 0x0200 (perhaps also below.
> Don't know exactly how much NutOS needs for it's own purpose.)
>
> Reboot:
>
> void reboot(void)
> {
> cli();
> wdt_reset();
> wdt_enable(1);
> while(1);
> }
>
> This will stop interrupts, clear and enable the watchdog with the
> shortest possible time and enter an endless loop. If the watchdog is not
> resettet after the configured time it will hardreset the ATMega.
>
> If you have other hardware on your board you'll perhaps need to trigger
> a reset signal in you startup code.
>
> Regards,
>
> Ole Reinhardt
Mit freundlichen Grüßen aus Nürnberg,
Gerd Müller
--
Gerd Müller NETWAYS GmbH
Senior Systems Engineer Deutschherrnstr. 47a
Fon.0911/92885-0 D-90429 Nürnberg
Fax.0911/92885-33
gmueller at netways.de www.netways.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.egnite.de/pipermail/en-nut-discussion/attachments/20040928/19d338dc/attachment-0001.pgp>
More information about the En-Nut-Discussion
mailing list