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/MassStorageHost/MassStorageHost.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c') diff --git a/Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c b/Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c index a595d1144..5030b85c4 100644 --- a/Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c +++ b/Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c @@ -70,10 +70,13 @@ void SetupHardware(void) clock_prescale_set(clock_div_1); /* Hardware Initialization */ - SerialStream_Init(9600, false); + Serial_Init(9600, false); LEDs_Init(); Buttons_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 -- cgit v1.2.3