aboutsummaryrefslogtreecommitdiff
path: root/Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2011-01-30 19:47:31 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2011-01-30 19:47:31 +0000
commit7ddd744fcae1d66f975b01ba9333d4a3e3862db6 (patch)
treebb0a474d996a6ea9232c7a3e342b5672a3ee2efc /Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c
parentea9c2018d7920a35f318b57d138b722c53765421 (diff)
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1646 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c')
-rw-r--r--Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c b/Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c
index 09c04f64..86007daa 100644
--- a/Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c
+++ b/Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c
@@ -152,7 +152,10 @@ void SetupHardware(void)
SPI_Init(SPI_SPEED_FCPU_DIV_2 | SPI_SCK_LEAD_FALLING | SPI_SAMPLE_TRAILING | SPI_MODE_MASTER);
Dataflash_Init();
Buttons_Init();
- SerialStream_Init(9600, true);
+ Serial_Init(9600, true);
+
+ /* Create a stdio stream for the serial port for stdin and stdout */
+ Serial_CreateStream(NULL);
#if defined(USB_CAN_BE_DEVICE)
/* Clear Dataflash sector protections, if enabled */