X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Fser.c;h=10757d0e3b91b8f0b0db6f8f05bff6d215c8df6f;hb=be5afe05ba0c8a2c885ee9b5a7251ac95d11ac20;hp=8c95a9d774c85b1c107e165d7a5867be5033f8fc;hpb=0628041b72ccf33890a673e46b0cd8035acf3a06;p=bertos.git diff --git a/drv/ser.c b/drv/ser.c old mode 100755 new mode 100644 index 8c95a9d7..10757d0e --- a/drv/ser.c +++ b/drv/ser.c @@ -1,9 +1,34 @@ /** * \file * * * \brief Buffered serial I/O driver @@ -28,6 +53,9 @@ /*#* *#* $Log$ + *#* Revision 1.38 2007/06/21 17:07:21 batt + *#* Remove CONFIG_WATCHDOG stuff: watchdog macros expand to nothing when wdt is active. + *#* *#* Revision 1.37 2007/06/07 14:35:12 batt *#* Merge from project_ks. *#* @@ -140,9 +168,7 @@ #include "ser.h" -#if CONFIG_WATCHDOG - #include "wdt.h" -#endif +#include "wdt.h" #include "ser_p.h" #include @@ -209,9 +235,7 @@ int ser_putchar(int c, struct Serial *port) /* 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(); @@ -256,9 +280,7 @@ int ser_getchar(struct Serial *port) /* 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(); @@ -505,9 +527,7 @@ void ser_drain(struct Serial *ser) /* Give up timeslice to other processes. */ proc_switch(); #endif - #if CONFIG_WATCHDOG wdt_reset(); - #endif } }