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
24 #include "cmdproc_freertos.h"
\r
25 #include "version.h" // Generated by Eclipse in the pre-build step
\r
27 /** @fn void main(void)
\r
28 * @brief Application main function
\r
30 * This function is called after startup.
\r
37 rpp_sci_setup(115200);
\r
39 rpp_sci_printf("\nRapid Prototyping Platform v00.01-001\n");
\r
40 rpp_sci_printf("Test Software version " GIT_VERSION "\n");
\r
41 rpp_sci_printf("CTU in Prague 2014\n");
\r
44 vTaskStartScheduler();
\r
46 //We should never get here
\r
51 #if configUSE_MALLOC_FAILED_HOOK == 1
\r
53 * FreeRTOS malloc() failed hook.
\r
55 void vApplicationMallocFailedHook(void)
\r
58 rpp_sci_printf("ERROR: manual memory allocation failed.\r\n");
\r
64 #if configCHECK_FOR_STACK_OVERFLOW > 0
\r
66 * FreeRTOS stack overflow hook.
\r
68 void vApplicationStackOverflowHook(xTaskHandle xTask,
\r
69 signed portCHAR *pcTaskName)
\r
72 rpp_sci_printf("ERROR: Stack overflow : \"%s\".\r\n", pcTaskName);
\r