]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/blobdiff - rpp-test-sw/commands/main.c
Compile with Makefile instead of CSS
[pes-rpp/rpp-test-sw.git] / rpp-test-sw / commands / main.c
index 5b3c874e62dde9ab2ea55a91298db5cb070627e8..22ccb041b20950c1cee39fb22cd7959e26b0d7d2 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
- * Copyright (C) 2012-2014 Czech Technical University in Prague\r
+ * Copyright (C) 2012-2015 Czech Technical University in Prague\r
  *\r
  * Created on: 15.3.2012\r
  *\r
  */\r
 \r
 /* Include Files */\r
-#include "rpp/sci.h"\r
-#include "rpp/adc.h"\r
-#include "rpp/gio.h"\r
+#include "rpp/rpp.h"\r
 #include "os/os.h"\r
-#include "cmdproc_freertos_rm48.h"\r
-#include "version.h" // Generated by Eclipse in the pre-build step\r
+#include "cmdproc_freertos.h"\r
+#include "version.h" // Generated by Makefile\r
+\r
+#if defined(TARGET_TMS570_HDK)\r
+#define TARGET_STR "TI HDK TMS570LS3137"\r
+#elif defined(TARGET_RM48_HDK)\r
+#define TARGET_STR "TI HDK RM48L952"\r
+#endif\r
 \r
 /** @fn void main(void)\r
  *   @brief Application main function\r
@@ -41,9 +45,9 @@ void main(void)
        // Speed up the SCI\r
        rpp_sci_setup(115200);\r
 \r
-       rpp_sci_printf("\nTi HDK RM48L952, FreeRTOS %d.%d.%d\n", FREERTOS_VERSION_NUMBER_MAYOR, FREERTOS_VERSION_NUMBER_MINOR, FREERTOS_VERSION_NUMBER_REV);\r
+       rpp_sci_printf("\n" TARGET_STR ", FreeRTOS %d.%d.%d\n", FREERTOS_VERSION_NUMBER_MAYOR, FREERTOS_VERSION_NUMBER_MINOR, FREERTOS_VERSION_NUMBER_REV);\r
        rpp_sci_printf("Test Software version " GIT_VERSION "\n");\r
-       rpp_sci_printf("CTU in Prague 10/2014\n");\r
+       rpp_sci_printf("CTU in Prague 04/2015\n");\r
 \r
        initCmdProc(0);\r
        vTaskStartScheduler();\r