mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-15 09:17:44 -04:00
Make full demo exit on error
This commit is contained in:
parent
aed7209b7a
commit
e84fc19966
3 changed files with 57 additions and 18 deletions
|
@ -65,16 +65,18 @@
|
|||
/* Local includes. */
|
||||
#include "console.h"
|
||||
|
||||
#define BLINKY_DEMO 0
|
||||
#define FULL_DEMO 1
|
||||
|
||||
#define mainSELECTED_APPLICATION BLINKY_DEMO
|
||||
|
||||
#ifdef BUILD_DIR
|
||||
#define BUILD BUILD_DIR
|
||||
#else
|
||||
#define BUILD "./"
|
||||
#endif
|
||||
#ifdef USER_DEMO
|
||||
#define mainSELECTED_APPLICATION USER_DEMO
|
||||
#else
|
||||
#define BLINKY_DEMO 0
|
||||
#define FULL_DEMO 1
|
||||
#define mainSELECTED_APPLICATION FULL_DEMO
|
||||
#endif
|
||||
|
||||
/* This demo uses heap_3.c (the libc provided malloc() and free()). */
|
||||
|
||||
|
@ -132,8 +134,6 @@ static BaseType_t xTraceRunning = pdTRUE;
|
|||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
||||
|
||||
int main( void )
|
||||
{
|
||||
/* SIGINT is not blocked by the posix port */
|
||||
|
@ -418,6 +418,5 @@ void handle_sigint( int signal )
|
|||
{
|
||||
printf( "chdir into %s error is %d\n", BUILD, errno );
|
||||
}
|
||||
|
||||
exit( 1 );
|
||||
exit( 2 );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue