]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/blob - rpp/lib/cmdproc/include/cmdproc_freertos_tms570.h
6292d85b35a741a755f85115d3cda4346dfd9b63
[pes-rpp/rpp-test-sw.git] / rpp / lib / cmdproc / include / cmdproc_freertos_tms570.h
1 /** @file cmd_proc_freertos_tms570.h
2 *   @brief Texas Instrument SCI FreeRTOS cmdProc header file
3 *   @date 1.August.2012
4 *
5 *  Function prototypes
6 *
7 */
8
9 #ifndef CMD_PROC_FREERTOS_TMS570_H_
10 #define CMD_PROC_FREERTOS_TMS570_H_
11
12 /* Include files */
13 #include "string.h"
14 #include "os/FreeRTOS.h"
15 #include "cmdproc.h"
16 #include "cmdproc_io_tisci.h"
17 #include "os/task.h"
18 #include "os/portmacro.h"
19
20
21 /**     Initializes CmdProc library, IO stack and creates task for FreeRTOS.
22  *      SCI must be initialized before calling this procedure.
23  *
24  *      @param[in]      priority                priority for main task.
25  *      @param[in]      introText               string shown once after initialization before prompt is shown. Can be NULL.
26  *      @param[in]      promptText              string shown when software is ready to read command from RS-232. Can be NULL.
27  */
28 void initCmdProc(unsigned portBASE_TYPE printPriority, uint8_t * intro, uint8_t * prompt);
29
30 /**     Procedure for task processCmd. Infinite loop that reads and process commands.
31  */
32 void processCmd(void *pvParameters );
33
34 #endif /* CMD_PROC_FREERTOS_TMS570_H_ */