a $NOWD option would also change the timing, as you than have to move the _initmicro call after save & change of MCUSR (which is mandatory for watchdog changes as I understand the datasheets).
If you want to keep the timing for most users maybe a $YOU_CAN_CONFIG_WATCHDOG_IN_INITMICRO_BUT_WITH_CHANGED_TIMING option, which toggels the _initmicro call from actual position to the position O-Familiy suggest. Then the users with "huge memory, slow clock and always watchdog on" can config the watchdog at a early stage. All other get the fastest _initmicro as possible.
ok, i get the problem. when the fuse is set, the wd is always on. even while the compiler turns it off, it will not respond to that.
i moved the disabling of the WD before the init_micro call. please test it, it is in the SLA area.
the few extra cycles (depending on the chip) are nothing compared to the startup time of the oscillator so i that will not be a real problem. _________________ Mark
All times are GMT + 1 Hour Goto page Previous1, 2, 3
Page 3 of 3
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum