/*#*
*#* $Log$
+ *#* Revision 1.37 2007/06/07 14:35:12 batt
+ *#* Merge from project_ks.
+ *#*
+ *#* Revision 1.36 2007/01/29 11:30:29 batt
+ *#* Reimplement ser_clearstatus as a macro.
+ *#*
+ *#* Revision 1.35 2007/01/27 20:47:12 batt
+ *#* Add clear status.
+ *#*
*#* Revision 1.34 2006/11/20 15:07:40 batt
*#* Revert unneeded locked functions.
*#*
*#*/
#include "ser.h"
+
+#if CONFIG_WATCHDOG
+ #include "wdt.h"
+#endif
+
#include "ser_p.h"
#include <mware/formatwr.h>
#include <cfg/debug.h>
/* Attende finche' il buffer e' pieno... */
do
{
+#if CONFIG_WATCHDOG
+ wdt_reset();
+#endif
#if CONFIG_KERNEL && CONFIG_KERN_SCHED
/* Give up timeslice to other processes. */
proc_switch();
/* Wait while buffer is empty */
do
{
+#if CONFIG_WATCHDOG
+ wdt_reset();
+#endif
#if CONFIG_KERNEL && CONFIG_KERN_SCHED
/* Give up timeslice to other processes. */
proc_switch();
/* Give up timeslice to other processes. */
proc_switch();
#endif
+ #if CONFIG_WATCHDOG
+ wdt_reset();
+ #endif
}
}