aboutsummaryrefslogtreecommitdiff
path: root/Demos/DualRole/ClassDriver
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2011-01-30 19:47:31 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2011-01-30 19:47:31 +0000
commit7ddd744fcae1d66f975b01ba9333d4a3e3862db6 (patch)
treebb0a474d996a6ea9232c7a3e342b5672a3ee2efc /Demos/DualRole/ClassDriver
parentea9c2018d7920a35f318b57d138b722c53765421 (diff)
Removed SerialStream module, rolled functionality into the base USART Serial peripheral driver instead through the new Serial_CreateStream() and Serial_CreateBlockingStream() methods.
Renamed the Serial byte send/receive functions to remain consistent with the CDC driver's byte functions. Altered the serial byte receive function to make it non-blocking. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1646 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Demos/DualRole/ClassDriver')
-rw-r--r--Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c5
-rw-r--r--Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.h2
-rw-r--r--Demos/DualRole/ClassDriver/MouseHostDevice/makefile3
3 files changed, 6 insertions, 4 deletions
diff --git a/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c b/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c
index e0de5c2e..16c8953d 100644
--- a/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c
+++ b/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c
@@ -76,11 +76,14 @@ void SetupHardware(void)
clock_prescale_set(clock_div_1);
/* Hardware Initialization */
- SerialStream_Init(9600, false);
+ Serial_Init(9600, false);
LEDs_Init();
Joystick_Init();
Buttons_Init();
USB_Init(USB_MODE_UID);
+
+ /* Create a stdio stream for the serial port for stdin and stdout */
+ Serial_CreateStream(NULL);
}
/** Event handler for the library USB mode change event. */
diff --git a/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.h b/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.h
index 4c9ea7fe..e0649c82 100644
--- a/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.h
+++ b/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.h
@@ -46,7 +46,7 @@
#include <LUFA/Version.h>
#include <LUFA/Drivers/Misc/TerminalCodes.h>
- #include <LUFA/Drivers/Peripheral/SerialStream.h>
+ #include <LUFA/Drivers/Peripheral/Serial.h>
#include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/Board/Joystick.h>
#include <LUFA/Drivers/Board/Buttons.h>
diff --git a/Demos/DualRole/ClassDriver/MouseHostDevice/makefile b/Demos/DualRole/ClassDriver/MouseHostDevice/makefile
index 0ed12ad2..8aca25a0 100644
--- a/Demos/DualRole/ClassDriver/MouseHostDevice/makefile
+++ b/Demos/DualRole/ClassDriver/MouseHostDevice/makefile
@@ -133,8 +133,7 @@ SRC = $(TARGET).c \
HostFunctions.c \
$(LUFA_SRC_USB) \
$(LUFA_SRC_USBCLASS) \
- $(LUFA_SRC_SERIAL) \
- $(LUFA_SRC_SERIALSTREAM)
+ $(LUFA_SRC_SERIAL)
# List C++ source files here. (C dependencies are automatically generated.)