]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Adds app_def header, which defines symbols for cond. compiling.
authorMartin Hořeňovský <Martin.Horenovsky@gmail.com>
Mon, 16 Sep 2013 18:47:52 +0000 (20:47 +0200)
committerMartin Hořeňovský <Martin.Horenovsky@gmail.com>
Mon, 16 Sep 2013 18:47:52 +0000 (20:47 +0200)
Makefile modified to include it.

rtems/gw/cangw/app_def.h [deleted file]
rtems/gw/system_opt/Makefile.omk
rtems/gw/system_opt/app_def.h [new file with mode: 0644]

diff --git a/rtems/gw/cangw/app_def.h b/rtems/gw/cangw/app_def.h
deleted file mode 100644 (file)
index 79a8a28..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#ifndef _APP_DEF_H
-#define _APP_DEF_H
-
-#ifndef COND_EXTERN
-  #ifdef CONFIGURE_INIT
-    #define COND_EXTERN
-  #else
-    #define COND_EXTERN extern
-  #endif
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void bad_rtems_status(rtems_status_code status, int fail_level, const char *text);
-
-static inline
-void check_rtems_status(rtems_status_code status, int fail_level, const char *text)
-{
-   if(!rtems_is_status_successful(status))
-     bad_rtems_status(status, fail_level, text);
-}
-
-#define SHELL_TASK_PRIORITY 50
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /*_APP_DEF_H*/
index 532eb88244895cc6598acb6735dba41610bd1d14..6ecec4c2e64afa99c691f281b206097e7b162f47 100644 (file)
@@ -1,3 +1,3 @@
 #SUBDIRS = 
 
-include_HEADERS = system_def.h networkconfig.h
+include_HEADERS = system_def.h networkconfig.h app_def.h
diff --git a/rtems/gw/system_opt/app_def.h b/rtems/gw/system_opt/app_def.h
new file mode 100644 (file)
index 0000000..4bf7317
--- /dev/null
@@ -0,0 +1,9 @@
+#ifndef _APP_DEF_H
+#define _APP_DEF_H
+
+//#define BENCH_BUILD /* Uncomment this to get "bench build" -> build that starts can gateway and net driver right after start. */
+//#define LOAD_BUILD /* Uncomment this to get "load build" -> build that spawns and has running both load threads right after start. */
+//#define HIGH_PRIO /* Uncomment this to get "high prio build" -> build that has increased (decreased) priority for the GW threads. */
+
+
+#endif /*_APP_DEF_H*/
\ No newline at end of file