summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cesar/projects/plc/Config4
-rw-r--r--cesar/projects/plc/Makefile12
-rw-r--r--cesar/projects/plc/ecos.ecc.sh5
-rw-r--r--cesar/projects/plc/src/plc.c24
4 files changed, 45 insertions, 0 deletions
diff --git a/cesar/projects/plc/Config b/cesar/projects/plc/Config
new file mode 100644
index 0000000000..0fcc0c799f
--- /dev/null
+++ b/cesar/projects/plc/Config
@@ -0,0 +1,4 @@
+CONFIG_DEBUG_CLAIM = n
+CONFIG_BLK_NB = 6144
+CONFIG_GPIO_LED_TRAFFIC = y
+CONFIG_GPIO_LED_AUTHENTICATED = y
diff --git a/cesar/projects/plc/Makefile b/cesar/projects/plc/Makefile
new file mode 100644
index 0000000000..86dd509afe
--- /dev/null
+++ b/cesar/projects/plc/Makefile
@@ -0,0 +1,12 @@
+BASE = ../..
+
+ECOS = y
+TARGET = sparc
+
+TARGET_OPTIMIZE = -Os
+
+TARGET_PROGRAMS = plc
+plc_SOURCES = plc.c
+plc_MODULES = lib hal mac cl hle interface cp ce station
+
+include $(BASE)/common/make/top.mk
diff --git a/cesar/projects/plc/ecos.ecc.sh b/cesar/projects/plc/ecos.ecc.sh
new file mode 100644
index 0000000000..db2208c6cc
--- /dev/null
+++ b/cesar/projects/plc/ecos.ecc.sh
@@ -0,0 +1,5 @@
+config=${1:-ecos-gen.ecc}
+ecosconfig --config=$config new sparc_leon default
+cat >> $config <<'EOF'
+EOF
+ecosconfig --config=$config check
diff --git a/cesar/projects/plc/src/plc.c b/cesar/projects/plc/src/plc.c
new file mode 100644
index 0000000000..658f45094a
--- /dev/null
+++ b/cesar/projects/plc/src/plc.c
@@ -0,0 +1,24 @@
+/* Cesar project {{{
+ *
+ * Copyright (C) 2009 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file src/plc.c
+ * \brief PLC startup file.
+ * \ingroup projects
+ */
+#include "common/std.h"
+
+#include "station/station.h"
+
+int
+cyg_user_start (void)
+{
+ /* Initialise Cesar. */
+ cesar_init ();
+ return 0;
+}
+