diff options
author | Dean Camera <[email protected]> | 2011-01-30 19:47:31 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2011-01-30 19:47:31 +0000 |
commit | afd828c095f38753e989391eab670b8736e4bd6e (patch) | |
tree | bb0a474d996a6ea9232c7a3e342b5672a3ee2efc /Demos/Device/Incomplete/Sideshow/Sideshow.c | |
parent | 30f6d2bfd82995e0fa346b3b4eb33861f6a0fde3 (diff) | |
download | qmk_firmware-afd828c095f38753e989391eab670b8736e4bd6e.tar.gz qmk_firmware-afd828c095f38753e989391eab670b8736e4bd6e.zip |
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.
Diffstat (limited to 'Demos/Device/Incomplete/Sideshow/Sideshow.c')
-rw-r--r-- | Demos/Device/Incomplete/Sideshow/Sideshow.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Demos/Device/Incomplete/Sideshow/Sideshow.c b/Demos/Device/Incomplete/Sideshow/Sideshow.c index 4b6b268466..09076e1532 100644 --- a/Demos/Device/Incomplete/Sideshow/Sideshow.c +++ b/Demos/Device/Incomplete/Sideshow/Sideshow.c @@ -80,7 +80,10 @@ void SetupHardware(void) /* Hardware Initialization */ LEDs_Init(); USB_Init(); - SerialStream_Init(9600, false); + Serial_Init(9600, false); + + /* Create a stdio stream for the serial port for stdin and stdout */ + Serial_CreateStream(NULL); } void EVENT_USB_Device_Connect(void) |