aboutsummaryrefslogtreecommitdiff
path: root/Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c')
-rw-r--r--Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c b/Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c
index 0cbfac9cd5..5674f35f27 100644
--- a/Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c
+++ b/Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c
@@ -182,9 +182,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