From ca9fb8575f225fb067db8e4eef201e50e8239c7d Mon Sep 17 00:00:00 2001 From: asterix Date: Thu, 4 Dec 2008 09:43:15 +0000 Subject: [PATCH] Fix some comments and typos. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1970 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/avr/drv/wdt_avr.h | 9 ++++----- bertos/drv/wdt.h | 2 +- examples/triface/boot/main.c | 12 ++++++------ 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/bertos/cpu/avr/drv/wdt_avr.h b/bertos/cpu/avr/drv/wdt_avr.h index 0edb5d16..1499d5a9 100644 --- a/bertos/cpu/avr/drv/wdt_avr.h +++ b/bertos/cpu/avr/drv/wdt_avr.h @@ -32,9 +32,9 @@ * * \brief Watchdog interface for AVR architecture. * - * \note The AVR LibC already provvide the api to manange - * the watchdog on AVR architecture. In LibC also define several - * macro to set the timeout value (see documentation for more detail). + * \note The avr-libc already provide an api to manage the watchdog on AVR architecture. + * In avr-libc are also available several constants used to set the timeout value + * (see documentation for more detail). * * \version $Id$ * @@ -55,8 +55,7 @@ /** * Reset the watchdog timer. * - * This functions is already definded to avr libc, - * we use it. + * This functions is already defind in avr-libc. */ // void wdt_reset(void) diff --git a/bertos/drv/wdt.h b/bertos/drv/wdt.h index 6e2cde30..064a565f 100644 --- a/bertos/drv/wdt.h +++ b/bertos/drv/wdt.h @@ -90,7 +90,7 @@ * timeout. * * \param timeout, this value is target dependant. - * See the target documentation for more detail. + * See the target documentation for more details. */ INLINE void wdt_start(uint32_t timeout) { diff --git a/examples/triface/boot/main.c b/examples/triface/boot/main.c index 1382ab9e..a1279ac1 100644 --- a/examples/triface/boot/main.c +++ b/examples/triface/boot/main.c @@ -66,12 +66,12 @@ /* * Watchdog disable. * - * This function disable the watchdog timer, after a reset. - * We should do it after the software reset (do with watchdog), - * because in new AVR core do not reset the watchdog after - * a cpu reset, so the watchdog timer remain enable resetting - * every timeout time the cpu. This is necessary only with new - * AVR core, for the other core this no have effect. + * This function disable the watchdog timer early after a reset. + * We must do it very soon because new AVR cores do not disable + * the watchdog timer after a cpu reset. In this way the watchdog + * timer is still enabled, continuously resetting the cpu. This is + * necessary only with new AVR cores, for other cores this code has + * no effect. * * \{ */ -- 2.25.1