int main( void ) { /* This demo uses heap_5.c, so start by defining some heap regions. This is only done to provide an example as this demo could easily create one large heap region instead of multiple smaller heap regions - in which case heap_4.c would be the more appropriate choice. No initialisation is required when heap_4.c is used. */ prvInitialiseHeap(); /* Initialise the trace recorder and create the label used to post user events to the trace recording on each tick interrupt. */ vTraceInitTraceData(); xTickTraceUserEvent = xTraceOpenLabel( "tick" ); /* Start the trace recording - the recording is written to a file if configASSERT() is called. */ printf( "\r\nTrace started. Hit a key to dump trace file to disk (does not work from Eclipse console).\r\n" ); fflush( stdout ); uiTraceStart(); /* The mainCREATE_SIMPLE_BLINKY_DEMO_ONLY setting is described at the top of this file. */ #if ( mainCREATE_SIMPLE_BLINKY_DEMO_ONLY == 1 ) { main_blinky(); } #else { main_full(); } #endif return 0; }
int main(void) { /* This demo uses heap_5.c, so start by defining some heap regions. This is only done to provide an example as this demo could easily create one large heap region instead of multiple smaller heap regions */ prvInitialiseHeap(); /* Initialise the trace recorder and create the label used to post user events to the trace recording on each tick interrupt. */ vTraceInitTraceData(); xTickTraceUserEvent = xTraceOpenLabel("tick"); vSemaphoreCreateBinary(xSemaphore); xQueue = xQueueCreate(4, sizeof(struct Message*)); /* Create the task, storing the handle. */ xTaskCreate((pdTASK_CODE)matrix_task, (signed char *)"Matrix", 1000, NULL, 3, &matrix_handle); xTaskCreate((pdTASK_CODE)reader_task, (signed char *)"Reader", 1000, NULL, 3, &reader_handle); //This starts the real-time scheduler vTaskStartScheduler(); for (;; ); return 0; }
int main(void) { /* This demo uses heap_5.c, so start by defining some heap regions. This is only done to provide an example as this demo could easily create one large heap region instead of multiple smaller heap regions */ prvInitialiseHeap(); /* Initialise the trace recorder and create the label used to post user events to the trace recording on each tick interrupt. */ vTraceInitTraceData(); xTickTraceUserEvent = xTraceOpenLabel("tick"); //This starts the real-time scheduler vTaskStartScheduler(); for (;; ); return 0; }