diff options
Diffstat (limited to 'Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c')
-rw-r--r-- | Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c b/Demos/DualRole/ClassDriver/MouseHostDevice/MouseHostDevice.c index e0de5c2e8..16c8953dc 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. */ |