2 * Copyright (C) 2012-2013 Czech Technical University in Prague
\r
4 * Created on: 15.3.2012
\r
8 * - Carlos Jenkins <carlos@jenkins.co.cr>
\r
10 * This program is free software; you can redistribute it and/or modify
\r
11 * it under the terms of the GNU General Public License as published by
\r
12 * the Free Software Foundation; either version 2 of the License, or
\r
13 * (at your option) any later version.
\r
15 * This program is distributed in the hope that it will be useful,
\r
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
18 * GNU General Public License for more details.
\r
20 * You should have received a copy of the GNU General Public License
\r
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
\r
26 * This file contains main function and Hook functions used by IDLE task.
\r
31 #include "rpp/rpp.h"
\r
32 #include "cmdproc_freertos_tms570.h"
\r
33 #include "version.h" // Generated by Eclipse in the pre-build step
\r
35 /** @fn void main(void)
\r
36 * @brief Application main function
\r
38 * This function is called after startup.
\r
45 rpp_sci_setup(115200);
\r
47 rpp_sci_printf("\nRapid Prototyping Platform v00.01-001\n");
\r
48 rpp_sci_printf("Test Software version " GIT_VERSION "\n");
\r
49 rpp_sci_printf("Porsche Engineering 06/2013\n");
\r
52 vTaskStartScheduler();
\r
54 //We should never get here
\r
59 #if configUSE_MALLOC_FAILED_HOOK == 1
\r
61 * FreeRTOS malloc() failed hook.
\r
63 void vApplicationMallocFailedHook(void)
\r
66 rpp_sci_printf((const char *)
\r
67 "ERROR: manual memory allocation failed.\r\n"
\r
74 #if configCHECK_FOR_STACK_OVERFLOW > 0
\r
76 * FreeRTOS stack overflow hook.
\r
78 void vApplicationStackOverflowHook(xTaskHandle xTask,
\r
79 signed portCHAR *pcTaskName)
\r
82 rpp_sci_printf((const char *)
\r
83 "ERROR: Stack overflow : \"%s\".\r\n", pcTaskName
\r