2 * Copyright (C) 2012-2014 Czech Technical University in Prague
\r
4 * Created on: 15.3.2012
\r
8 * - Carlos Jenkins <carlos@jenkins.co.cr>
\r
10 * This document contains proprietary information belonging to Czech
\r
11 * Technical University in Prague. Passing on and copying of this
\r
12 * document, and communication of its contents is not permitted
\r
13 * without prior written authorization.
\r
18 * This file contains main function and Hook functions used by IDLE task.
\r
23 #include "rpp/rpp.h"
\r
25 #include "cmdproc_freertos.h"
\r
26 #include "version.h" // Generated by Eclipse in the pre-build step
\r
28 /** @fn void main(void)
\r
29 * @brief Application main function
\r
31 * This function is called after startup.
\r
36 rpp_gio_init(RPP_GIO_PORT_ALL);
\r
40 rpp_sci_setup(115200);
\r
42 rpp_sci_printf("\nTi HDK RM48L952, FreeRTOS %d.%d.%d\n", FREERTOS_VERSION_NUMBER_MAYOR, FREERTOS_VERSION_NUMBER_MINOR, FREERTOS_VERSION_NUMBER_REV);
\r
43 rpp_sci_printf("Test Software version " GIT_VERSION "\n");
\r
44 rpp_sci_printf("CTU in Prague 10/2014\n");
\r
47 vTaskStartScheduler();
\r
49 //We should never get here
\r
54 #if configUSE_MALLOC_FAILED_HOOK == 1
\r
56 * FreeRTOS malloc() failed hook.
\r
58 void vApplicationMallocFailedHook(void)
\r
61 rpp_sci_printf("ERROR: manual memory allocation failed.\r\n");
\r
67 #if configCHECK_FOR_STACK_OVERFLOW > 0
\r
69 * FreeRTOS stack overflow hook.
\r
71 void vApplicationStackOverflowHook(xTaskHandle xTask,
\r
72 signed portCHAR *pcTaskName)
\r
75 rpp_sci_printf("ERROR: Stack overflow : \"%s\".\r\n", pcTaskName);
\r