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.
This commit is contained in:
parent
30f6d2bfd8
commit
afd828c095
107 changed files with 518 additions and 560 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue