From afd828c095f38753e989391eab670b8736e4bd6e Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 30 Jan 2011 19:47:31 +0000 Subject: 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. --- Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.c | 5 ++++- Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.h | 2 +- Demos/Host/LowLevel/JoystickHostWithParser/makefile | 3 +-- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'Demos/Host/LowLevel/JoystickHostWithParser') diff --git a/Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.c b/Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.c index c69e62d74..5dcd97ca4 100644 --- a/Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.c +++ b/Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.c @@ -66,9 +66,12 @@ void SetupHardware(void) clock_prescale_set(clock_div_1); /* Hardware Initialization */ - SerialStream_Init(9600, false); + Serial_Init(9600, false); LEDs_Init(); USB_Init(); + + /* Create a stdio stream for the serial port for stdin and stdout */ + Serial_CreateStream(NULL); } /** Event handler for the USB_DeviceAttached event. This indicates that a device has been attached to the host, and diff --git a/Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.h b/Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.h index 5365f83c3..6bcc0613a 100644 --- a/Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.h +++ b/Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.h @@ -46,7 +46,7 @@ #include #include - #include + #include #include #include diff --git a/Demos/Host/LowLevel/JoystickHostWithParser/makefile b/Demos/Host/LowLevel/JoystickHostWithParser/makefile index 7e44f1ffd..93d052270 100644 --- a/Demos/Host/LowLevel/JoystickHostWithParser/makefile +++ b/Demos/Host/LowLevel/JoystickHostWithParser/makefile @@ -129,8 +129,7 @@ SRC = $(TARGET).c \ ConfigDescriptor.c \ HIDReport.c \ $(LUFA_SRC_USB) \ - $(LUFA_SRC_SERIAL) \ - $(LUFA_SRC_SERIALSTREAM) + $(LUFA_SRC_SERIAL) # List C++ source files here. (C dependencies are automatically generated.) -- cgit v1.2.3