aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/ClassDriver/MIDIHost/MIDIHost.c
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/Host/ClassDriver/MIDIHost/MIDIHost.c')
-rw-r--r--Demos/Host/ClassDriver/MIDIHost/MIDIHost.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Demos/Host/ClassDriver/MIDIHost/MIDIHost.c b/Demos/Host/ClassDriver/MIDIHost/MIDIHost.c
index ae40aeb28..4cfaccdc3 100644
--- a/Demos/Host/ClassDriver/MIDIHost/MIDIHost.c
+++ b/Demos/Host/ClassDriver/MIDIHost/MIDIHost.c
@@ -141,11 +141,14 @@ void SetupHardware(void)
clock_prescale_set(clock_div_1);
/* Hardware Initialization */
- SerialStream_Init(9600, false);
+ Serial_Init(9600, false);
LEDs_Init();
Buttons_Init();
Joystick_Init();
USB_Init();
+
+ /* Create a stdio stream for the serial port for stdin and stdout */
+ Serial_CreateStream(NULL);
}
void CheckJoystickMovement(void)