]> git.sur5r.net Git - freertos/blobdiff - Demo/CORTEX_MB9B500_IAR_Keil/serial.c
Complete the Keil full FM3 demo.
[freertos] / Demo / CORTEX_MB9B500_IAR_Keil / serial.c
index 389bb9ed8dee7f9d4505ca5d3ad318321cf07ce8..57658f26e2c30e72207a2f3d64424221964c8d9b 100644 (file)
@@ -59,7 +59,7 @@
        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
@@ -106,8 +106,6 @@ static xQueueHandle xCharsForTx;
  */\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
@@ -159,14 +157,10 @@ xComPortHandle xReturn;
                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