1 /** @file sys_main.c
\r
2 * @brief Application main file
\r
6 * This file contains an empty main function,
\r
7 * which can be used for the application.
\r
10 /* (c) Texas Instruments 2009-2012, All rights reserved. */
\r
12 /* USER CODE BEGIN (0) */
\r
16 #include "rpp/rpp.h"
\r
17 #include "cmdproc_freertos_tms570.h"
\r
19 /** @fn void main(void)
\r
20 * @brief Application main function
\r
21 * @note This function is empty by default.
\r
23 * This function is called after startup.
\r
24 * The user can use this function to implement the application.
\r
27 /* USER CODE BEGIN (2) */
\r
34 /* USER CODE BEGIN (3) */
\r
37 initCmdProc(1, (uint8_t*)"\r\n----\r\n Rapid Prototyping Platform v00.02-001\r\n Porsche Engineering 06/2013\r\n----\r\n\r\nType commands", (uint8_t *)"\r\n--> ");
\r
38 vTaskStartScheduler();
\r
40 //We should never get here
\r
46 #if configUSE_MALLOC_FAILED_HOOK == 1
\r
48 * FreeRTOS malloc() failed hook.
\r
50 void vApplicationMallocFailedHook(void) {
\r
52 rpp_sci_printf((const char*)
\r
53 "ERROR: manual memory allocation failed.\r\n"
\r
60 #if configCHECK_FOR_STACK_OVERFLOW > 0
\r
62 * FreeRTOS stack overflow hook.
\r
64 void vApplicationStackOverflowHook(xTaskHandle xTask,
\r
65 signed portCHAR *pcTaskName) {
\r
67 rpp_sci_printf((const char*)
\r
68 "ERROR: Stack overflow : \"%s\".\r\n", pcTaskName
\r
76 /* USER CODE BEGIN (4) */
\r