aboutsummaryrefslogtreecommitdiffstats
path: root/examples/drivertest
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2010-01-15 18:34:48 +0000
committerChristian Starkjohann <cs+github@obdev.at>2010-01-15 18:34:48 +0000
commit9af5598e13733490671372a28173d08c7314f030 (patch)
tree4f5950f2b8f6dc98370cc9db3acc35a21855b2d0 /examples/drivertest
parenta29be0eac641b72dbade9b98d46d011b819aafe2 (diff)
downloadv-usb-9af5598e13733490671372a28173d08c7314f030.tar.gz
v-usb-9af5598e13733490671372a28173d08c7314f030.tar.bz2
v-usb-9af5598e13733490671372a28173d08c7314f030.zip
- moved first debug print after odDebugInit()
Diffstat (limited to 'examples/drivertest')
-rw-r--r--examples/drivertest/firmware/main.c2
1 files changed, 1 insertions, 1 deletions
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;