is done to demonstrate queues being used in an interrupt, and to deliberately\r
load the system to test the FreeRTOS port. It is *NOT* meant to be an\r
example of an efficient implementation. An efficient implementation should\r
- use FIFO's or DMA if available, and only use FreeRTOS API functions when\r
+ use FIFOs or DMA if available, and only use FreeRTOS API functions when\r
enough has been received to warrant a task being unblocked to process the\r
data.\r
*/\r
*/\r
xComPortHandle xSerialPortInitMinimal( unsigned long ulWantedBaud, unsigned portBASE_TYPE uxQueueLength )\r
{\r
-xComPortHandle xReturn;\r
-\r
/* Create the queues used to hold Rx/Tx characters. */\r
xRxedChars = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof( signed char ) );\r
xCharsForTx = xQueueCreate( uxQueueLength + 1, ( unsigned portBASE_TYPE ) sizeof( signed char ) );\r
are called in the interrupt handler. */\r
NVIC_SetPriority( MFS0TX_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );\r
}\r
- else\r
- {\r
- xReturn = ( xComPortHandle ) 0;\r
- }\r
\r
/* This demo file only supports a single port but we have to return\r
something to comply with the standard demo header file. */\r
- return xReturn;\r
+ return ( xComPortHandle ) 0;\r
}\r
/*-----------------------------------------------------------*/\r
\r