aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2013-11-12 11:43:58 +0100
committerChristian Starkjohann <cs+github@obdev.at>2013-11-12 11:43:58 +0100
commitbe46bb29fab23ff88f1314a4f4aa07d5e5287ed5 (patch)
tree7c14f7c52ea71fe9bc645a31a84751e42109d7bd /examples
parentf1311e1cd5a841906fb9f26a49e49d97efe21b51 (diff)
downloadv-usb-be46bb29fab23ff88f1314a4f4aa07d5e5287ed5.tar.gz
v-usb-be46bb29fab23ff88f1314a4f4aa07d5e5287ed5.tar.bz2
v-usb-be46bb29fab23ff88f1314a4f4aa07d5e5287ed5.zip
Improved comment about watchdog in example code.
Diffstat (limited to 'examples')
-rw-r--r--examples/custom-class/firmware/main.c5
-rw-r--r--examples/drivertest/firmware/main.c5
-rw-r--r--examples/hid-custom-rq/firmware/main.c5
-rw-r--r--examples/hid-data/firmware/main.c5
-rw-r--r--examples/hid-mouse/firmware/main.c5
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