mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-17 18:27:47 -04:00
Various small formatting and wording changes in Linux demo
This commit is contained in:
parent
8ada8156e0
commit
c0df730de7
4 changed files with 24 additions and 26 deletions
|
@ -27,19 +27,18 @@
|
|||
|
||||
/******************************************************************************
|
||||
* This project provides three demo applications. A simple blinky style project,
|
||||
* a more comprehensive test and demo application, and a TCP echo application.
|
||||
* a more comprehensive test and demo application, and a TCP echo demo.
|
||||
* The mainSELECTED_APPLICATION setting is used to select between
|
||||
* the three
|
||||
*
|
||||
* if mainSELECTED_APPLICATION is BLINKY_DEMO.
|
||||
* If mainSELECTED_APPLICATION = BLINKY_DEMO the simple blinky demo will be built.
|
||||
* The simply blinky demo is implemented and described in main_blinky.c.
|
||||
*
|
||||
* The more comprehensive test and demo application is implemented
|
||||
* and described in main_full.c and activated by
|
||||
* setting mainSELECTED_APPLICATION FULL_DEMO.
|
||||
* If mainSELECTED_APPLICATION = FULL_DEMO the more comprehensive test and demo
|
||||
* application built. This is implemented and described in main_full.c.
|
||||
*
|
||||
* The ECHO_CLIENT_DEMO setting is used to select the tcp echo
|
||||
* application implemeted in main_networking.c
|
||||
* If mainSELECTED_APPLICATION = ECHO_CLIENT_DEMO the tcp echo demo will be built.
|
||||
* This is implemented and described in main_networking.c
|
||||
*
|
||||
* This file implements the code that is not demo specific, including the
|
||||
* hardware setup and FreeRTOS hook functions.
|
||||
|
@ -156,10 +155,10 @@ int main( void )
|
|||
console_print("Starting full demo\n");
|
||||
main_full();
|
||||
}
|
||||
#else
|
||||
{
|
||||
#error "The selected demo is not valid"
|
||||
}
|
||||
#else
|
||||
{
|
||||
#error "The selected demo is not valid"
|
||||
}
|
||||
|
||||
#endif /* if ( mainSELECTED_APPLICATION ) */
|
||||
|
||||
|
@ -195,15 +194,14 @@ void vApplicationIdleHook( void )
|
|||
vTaskDelete() API function to delete themselves then it is also important
|
||||
that vApplicationIdleHook() is permitted to return to its calling function,
|
||||
because it is the responsibility of the idle task to clean up memory
|
||||
allocated by the kernel to any task that has since deleted itself. */
|
||||
allocated by the kernel to any task that has since deleted itself. */
|
||||
|
||||
sleep( 1 );
|
||||
|
||||
#if ( mainSELECTED_APPLICATION == FULL_DEMO )
|
||||
{
|
||||
/* Call the idle task processing used by the full demo. The simple
|
||||
blinky demo does not use the idle task hook. */
|
||||
/* vFullDemoIdleFunction(); */
|
||||
vFullDemoIdleFunction();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -233,9 +231,9 @@ void vApplicationTickHook( void )
|
|||
functions can be used (those that end in FromISR()). */
|
||||
|
||||
#if (mainSELECTED_APPLICATION == FULL_DEMO )
|
||||
{
|
||||
{
|
||||
vFullDemoTickHookFunction();
|
||||
}
|
||||
}
|
||||
#endif /* mainSELECTED_APPLICATION */
|
||||
}
|
||||
|
||||
|
@ -291,8 +289,8 @@ volatile uint32_t ulSetToNonZeroInDebuggerToContinue = 0;
|
|||
value. */
|
||||
while( ulSetToNonZeroInDebuggerToContinue == 0 )
|
||||
{
|
||||
__asm volatile ( "NOP" );
|
||||
__asm volatile ( "NOP" );
|
||||
__asm volatile ( "NOP" );
|
||||
__asm volatile ( "NOP" );
|
||||
}
|
||||
}
|
||||
taskEXIT_CRITICAL();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue