aboutsummaryrefslogtreecommitdiffstats
path: root/Demos
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-08-05 13:16:36 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-08-05 13:16:36 +0000
commit99c447c754e0b238aca99ac772b5dabb78fc8b48 (patch)
treece5a2f7855fed8676f4633f7d765075cec305e76 /Demos
parent4421782b7fb49e160b1c18f2295e6cd1f0b00c04 (diff)
downloadlufa-99c447c754e0b238aca99ac772b5dabb78fc8b48.tar.gz
lufa-99c447c754e0b238aca99ac772b5dabb78fc8b48.tar.bz2
lufa-99c447c754e0b238aca99ac772b5dabb78fc8b48.zip
Fixed issue in USBtoSerial demos where the USART Rx line was not having its pullup enabled at startup, leading to noise being received from the Rx pin when left floating.
Removed unused relative Common.h header include from the DriverStubs board stub drivers. Fixed Benito programmer, use the correct LED functions where needed to ensure correct status display at all times.
Diffstat (limited to 'Demos')
-rw-r--r--Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c2
-rw-r--r--Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.h1
-rw-r--r--Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c4
3 files changed, 3 insertions, 4 deletions
diff --git a/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c b/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c
index b78a6d331..0c83cd8dd 100644
--- a/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c
+++ b/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c
@@ -110,7 +110,7 @@ void SetupHardware(void)
clock_prescale_set(clock_div_1);
/* Hardware Initialization */
- Joystick_Init();
+ Serial_Init(9600, false);
LEDs_Init();
USB_Init();
}
diff --git a/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.h b/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.h
index 4ceb931a3..c982ad1a6 100644
--- a/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.h
+++ b/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.h
@@ -48,7 +48,6 @@
#include <LUFA/Version.h>
#include <LUFA/Drivers/Board/LEDs.h>
- #include <LUFA/Drivers/Board/Joystick.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/USB/Class/CDC.h>
diff --git a/Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c b/Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c
index 736c0af10..141a45276 100644
--- a/Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c
+++ b/Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c
@@ -81,9 +81,9 @@ void SetupHardware(void)
clock_prescale_set(clock_div_1);
/* Hardware Initialization */
+ Serial_Init(9600, false);
LEDs_Init();
- ReconfigureUSART();
- USB_Init();
+ USB_Init();
}
/** Event handler for the USB_Connect event. This indicates that the device is enumerating via the status LEDs and