projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Renamed the PRNT_Host_SendString(), CDC_Host_SendString() and CDC_Device_SendString...
[pub/lufa.git]
/
Demos
/
Host
/
LowLevel
/
MouseHostWithParser
/
MouseHostWithParser.c
diff --git
a/Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c
b/Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c
index
ffc11d8
..
af33ba5
100644
(file)
--- a/
Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c
+++ b/
Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c
@@
-66,9
+66,12
@@
void SetupHardware(void)
clock_prescale_set(clock_div_1);
/* Hardware Initialization */
clock_prescale_set(clock_div_1);
/* Hardware Initialization */
- Serial
Stream
_Init(9600, false);
+ Serial_Init(9600, false);
LEDs_Init();
USB_Init();
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
}
/** Event handler for the USB_DeviceAttached event. This indicates that a device has been attached to the host, and
@@
-225,7
+228,7
@@
void Mouse_HID_Task(void)
uint8_t MouseReport[Pipe_BytesInPipe()];
/* Load in the mouse report */
uint8_t MouseReport[Pipe_BytesInPipe()];
/* Load in the mouse report */
- Pipe_Read_Stream_LE(MouseReport, Pipe_BytesInPipe());
+ Pipe_Read_Stream_LE(MouseReport, Pipe_BytesInPipe()
, NULL
);
/* Process the read in mouse report from the device */
ProcessMouseReport(MouseReport);
/* Process the read in mouse report from the device */
ProcessMouseReport(MouseReport);