summaryrefslogtreecommitdiff
path: root/cesar/projects
diff options
context:
space:
mode:
authordufour2010-01-19 15:01:58 +0000
committerdufour2010-01-19 15:01:58 +0000
commit66870b98762a8425ebe61c7b02df4e20c3fde889 (patch)
tree969319383c5ec6faed40b31af03d8ce1cb200bf1 /cesar/projects
parentca17138902cef972e32ca45cf002f08c4d2a0ef1 (diff)
cesar/projects/plc: integrate ce/fcall into the PLC projet
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@6632 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/projects')
-rw-r--r--cesar/projects/plc/Makefile2
-rw-r--r--cesar/projects/plc/src/plc.c10
2 files changed, 12 insertions, 0 deletions
diff --git a/cesar/projects/plc/Makefile b/cesar/projects/plc/Makefile
index afc5dae556..25ef73ccfb 100644
--- a/cesar/projects/plc/Makefile
+++ b/cesar/projects/plc/Makefile
@@ -8,5 +8,7 @@ TARGET_OPTIMIZE = -Os
TARGET_PROGRAMS = plc
plc_SOURCES = plc.c
plc_MODULES = lib hal mac cl hle interface cp cp/av ce station
+# Add support for Fcalls.
+plc_MODULES += host ce/fcall
include $(BASE)/common/make/top.mk
diff --git a/cesar/projects/plc/src/plc.c b/cesar/projects/plc/src/plc.c
index 658f45094a..60054b7247 100644
--- a/cesar/projects/plc/src/plc.c
+++ b/cesar/projects/plc/src/plc.c
@@ -11,14 +11,24 @@
* \ingroup projects
*/
#include "common/std.h"
+#include "common/module.h"
#include "station/station.h"
+#if MODULE_INCLUDED (ce_fcall)
+# include "ce/fcall/fcall.h"
+#endif
+
int
cyg_user_start (void)
{
+#if MODULE_INCLUDED (ce_fcall)
+ /* Initialise Cesar and CE FCall module. */
+ ce_fcall_init (cesar_init ());
+#else
/* Initialise Cesar. */
cesar_init ();
+#endif
return 0;
}