aboutsummaryrefslogtreecommitdiffstats
path: root/examples
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
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')
-rw-r--r--examples/custom-class/firmware/main.c2
-rw-r--r--examples/drivertest/firmware/main.c2
-rw-r--r--examples/hid-custom-rq/firmware/main.c2
-rw-r--r--examples/hid-data/firmware/main.c2
-rw-r--r--examples/hid-mouse/firmware/main.c2
5 files changed, 5 insertions, 5 deletions
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;