From e57036686413b5ea5f943ea1c2321976e73e2cb7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Mon, 16 Sep 2013 20:47:52 +0200 Subject: [PATCH] Adds app_def header, which defines symbols for cond. compiling. Makefile modified to include it. --- rtems/gw/cangw/app_def.h | 31 ------------------------------- rtems/gw/system_opt/Makefile.omk | 2 +- rtems/gw/system_opt/app_def.h | 9 +++++++++ 3 files changed, 10 insertions(+), 32 deletions(-) delete mode 100644 rtems/gw/cangw/app_def.h create mode 100644 rtems/gw/system_opt/app_def.h diff --git a/rtems/gw/cangw/app_def.h b/rtems/gw/cangw/app_def.h deleted file mode 100644 index 79a8a28..0000000 --- a/rtems/gw/cangw/app_def.h +++ /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*/ diff --git a/rtems/gw/system_opt/Makefile.omk b/rtems/gw/system_opt/Makefile.omk index 532eb88..6ecec4c 100644 --- a/rtems/gw/system_opt/Makefile.omk +++ b/rtems/gw/system_opt/Makefile.omk @@ -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 index 0000000..4bf7317 --- /dev/null +++ b/rtems/gw/system_opt/app_def.h @@ -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 -- 2.39.2