From 9af5598e13733490671372a28173d08c7314f030 Mon Sep 17 00:00:00 2001 From: Christian Starkjohann Date: Fri, 15 Jan 2010 18:34:48 +0000 Subject: - moved first debug print after odDebugInit() --- examples/custom-class/firmware/main.c | 2 +- examples/drivertest/firmware/main.c | 2 +- examples/hid-custom-rq/firmware/main.c | 2 +- examples/hid-data/firmware/main.c | 2 +- examples/hid-mouse/firmware/main.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/custom-class/firmware/main.c b/examples/custom-class/firmware/main.c index 4e59082..22c1e60 100644 --- a/examples/custom-class/firmware/main.c +++ b/examples/custom-class/firmware/main.c @@ -70,12 +70,12 @@ uchar i; /* 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! */ - DBG1(0x00, 0, 0); /* debug output: main starts */ /* 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 * additional hardware initialization. */ odDebugInit(); + DBG1(0x00, 0, 0); /* debug output: main starts */ usbInit(); usbDeviceDisconnect(); /* enforce re-enumeration, do this while interrupts are disabled! */ i = 0; diff --git a/examples/drivertest/firmware/main.c b/examples/drivertest/firmware/main.c index 2bcbc8f..0c3d320 100644 --- a/examples/drivertest/firmware/main.c +++ b/examples/drivertest/firmware/main.c @@ -83,6 +83,7 @@ uchar i; /* 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! */ + odDebugInit(); DBG1(0x00, 0, 0); /* debug output: main starts */ /* 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 @@ -93,7 +94,6 @@ uchar i; DDRB = (1 << 2) | (1 << 3); TCCR0 = 3; /* 1/64 prescaler */ - odDebugInit(); usbInit(); usbDeviceDisconnect(); /* enforce re-enumeration, do this while interrupts are disabled! */ i = 0; diff --git a/examples/hid-custom-rq/firmware/main.c b/examples/hid-custom-rq/firmware/main.c index f7a4d0b..2909828 100644 --- a/examples/hid-custom-rq/firmware/main.c +++ b/examples/hid-custom-rq/firmware/main.c @@ -91,12 +91,12 @@ uchar i; /* 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! */ - DBG1(0x00, 0, 0); /* debug output: main starts */ /* 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 * additional hardware initialization. */ odDebugInit(); + DBG1(0x00, 0, 0); /* debug output: main starts */ usbInit(); usbDeviceDisconnect(); /* enforce re-enumeration, do this while interrupts are disabled! */ i = 0; diff --git a/examples/hid-data/firmware/main.c b/examples/hid-data/firmware/main.c index 0488414..7f05e76 100644 --- a/examples/hid-data/firmware/main.c +++ b/examples/hid-data/firmware/main.c @@ -114,12 +114,12 @@ uchar i; /* 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! */ - DBG1(0x00, 0, 0); /* debug output: main starts */ /* 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 * additional hardware initialization. */ odDebugInit(); + DBG1(0x00, 0, 0); /* debug output: main starts */ usbInit(); usbDeviceDisconnect(); /* enforce re-enumeration, do this while interrupts are disabled! */ i = 0; diff --git a/examples/hid-mouse/firmware/main.c b/examples/hid-mouse/firmware/main.c index 32a81d4..8f3fcd5 100644 --- a/examples/hid-mouse/firmware/main.c +++ b/examples/hid-mouse/firmware/main.c @@ -132,12 +132,12 @@ uchar i; /* 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! */ - DBG1(0x00, 0, 0); /* debug output: main starts */ /* 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 * additional hardware initialization. */ odDebugInit(); + DBG1(0x00, 0, 0); /* debug output: main starts */ usbInit(); usbDeviceDisconnect(); /* enforce re-enumeration, do this while interrupts are disabled! */ i = 0; -- cgit v1.2.3