From be46bb29fab23ff88f1314a4f4aa07d5e5287ed5 Mon Sep 17 00:00:00 2001 From: Christian Starkjohann Date: Tue, 12 Nov 2013 11:43:58 +0100 Subject: Improved comment about watchdog in example code. --- examples/custom-class/firmware/main.c | 5 +++-- examples/drivertest/firmware/main.c | 5 +++-- examples/hid-custom-rq/firmware/main.c | 5 +++-- examples/hid-data/firmware/main.c | 5 +++-- examples/hid-mouse/firmware/main.c | 5 +++-- 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/examples/custom-class/firmware/main.c b/examples/custom-class/firmware/main.c index 0222729..5c07a7f 100644 --- a/examples/custom-class/firmware/main.c +++ b/examples/custom-class/firmware/main.c @@ -66,8 +66,9 @@ int __attribute__((noreturn)) main(void) uchar i; wdt_enable(WDTO_1S); - /* Even if you don't use the watchdog, turn it off here. On newer devices, - * the status of the watchdog (on/off, period) is PRESERVED OVER RESET! + /* If you don't use the watchdog, replace the call above with a wdt_disable(). + * On newer devices, the status of the watchdog (on/off, period) is PRESERVED + * OVER RESET! */ /* RESET status: all port bits are inputs without pull-up. * That's the way we need D+ and D-. Therefore we don't need any diff --git a/examples/drivertest/firmware/main.c b/examples/drivertest/firmware/main.c index 53e322c..d24e50f 100644 --- a/examples/drivertest/firmware/main.c +++ b/examples/drivertest/firmware/main.c @@ -79,8 +79,9 @@ int __attribute__((noreturn)) main(void) uchar i; wdt_enable(WDTO_1S); - /* Even if you don't use the watchdog, turn it off here. On newer devices, - * the status of the watchdog (on/off, period) is PRESERVED OVER RESET! + /* If you don't use the watchdog, replace the call above with a wdt_disable(). + * On newer devices, the status of the watchdog (on/off, period) is PRESERVED + * OVER RESET! */ odDebugInit(); DBG1(0x00, 0, 0); /* debug output: main starts */ diff --git a/examples/hid-custom-rq/firmware/main.c b/examples/hid-custom-rq/firmware/main.c index 58d3809..605d58b 100644 --- a/examples/hid-custom-rq/firmware/main.c +++ b/examples/hid-custom-rq/firmware/main.c @@ -87,8 +87,9 @@ int __attribute__((noreturn)) main(void) uchar i; wdt_enable(WDTO_1S); - /* Even if you don't use the watchdog, turn it off here. On newer devices, - * the status of the watchdog (on/off, period) is PRESERVED OVER RESET! + /* If you don't use the watchdog, replace the call above with a wdt_disable(). + * On newer devices, the status of the watchdog (on/off, period) is PRESERVED + * OVER RESET! */ /* RESET status: all port bits are inputs without pull-up. * That's the way we need D+ and D-. Therefore we don't need any diff --git a/examples/hid-data/firmware/main.c b/examples/hid-data/firmware/main.c index 9e4241f..7c8c85e 100644 --- a/examples/hid-data/firmware/main.c +++ b/examples/hid-data/firmware/main.c @@ -110,8 +110,9 @@ int main(void) uchar i; wdt_enable(WDTO_1S); - /* Even if you don't use the watchdog, turn it off here. On newer devices, - * the status of the watchdog (on/off, period) is PRESERVED OVER RESET! + /* If you don't use the watchdog, replace the call above with a wdt_disable(). + * On newer devices, the status of the watchdog (on/off, period) is PRESERVED + * OVER RESET! */ /* RESET status: all port bits are inputs without pull-up. * That's the way we need D+ and D-. Therefore we don't need any diff --git a/examples/hid-mouse/firmware/main.c b/examples/hid-mouse/firmware/main.c index f13361e..e986731 100644 --- a/examples/hid-mouse/firmware/main.c +++ b/examples/hid-mouse/firmware/main.c @@ -128,8 +128,9 @@ int __attribute__((noreturn)) main(void) uchar i; wdt_enable(WDTO_1S); - /* Even if you don't use the watchdog, turn it off here. On newer devices, - * the status of the watchdog (on/off, period) is PRESERVED OVER RESET! + /* If you don't use the watchdog, replace the call above with a wdt_disable(). + * On newer devices, the status of the watchdog (on/off, period) is PRESERVED + * OVER RESET! */ /* RESET status: all port bits are inputs without pull-up. * That's the way we need D+ and D-. Therefore we don't need any -- cgit v1.2.3