summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2013-06-24 15:30:40 +0200
committerChristian Pointner <equinox@spreadspace.org>2013-06-24 15:30:40 +0200
commit5f1c3c1c0c27275386a6a9695b437aa95828e9ba (patch)
tree5b1abd90412a6dca748eeab95dbff8685204ac58
parentsome cleanup (diff)
added inital dustmap-node sourcecode
-rw-r--r--.gitignore1
-rw-r--r--contrib/contiki-2.6.zipbin0 -> 25006940 bytes
-rw-r--r--software/dustmap-node/Makefile9
-rw-r--r--software/dustmap-node/Makefile.target1
-rw-r--r--software/dustmap-node/dustmap-node.c47
5 files changed, 58 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index f113725..91623cd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ hardware/*/*.bak
hardware/*/*-cache.lib
hardware/*/$savepcb.brd
hardware/*/*.000
+contrib/contiki-2.6/
diff --git a/contrib/contiki-2.6.zip b/contrib/contiki-2.6.zip
new file mode 100644
index 0000000..2b320e4
--- /dev/null
+++ b/contrib/contiki-2.6.zip
Binary files differ
diff --git a/software/dustmap-node/Makefile b/software/dustmap-node/Makefile
new file mode 100644
index 0000000..e152d62
--- /dev/null
+++ b/software/dustmap-node/Makefile
@@ -0,0 +1,9 @@
+CONTIKI_PROJECT = dustmap-node
+all: $(CONTIKI_PROJECT)
+
+APPS = telnetd program-handler
+
+WITH_UIP=1
+
+CONTIKI = ../../contrib/contiki-2.6
+include $(CONTIKI)/Makefile.include
diff --git a/software/dustmap-node/Makefile.target b/software/dustmap-node/Makefile.target
new file mode 100644
index 0000000..bbcd147
--- /dev/null
+++ b/software/dustmap-node/Makefile.target
@@ -0,0 +1 @@
+TARGET = avr-zigbit
diff --git a/software/dustmap-node/dustmap-node.c b/software/dustmap-node/dustmap-node.c
new file mode 100644
index 0000000..3c3a649
--- /dev/null
+++ b/software/dustmap-node/dustmap-node.c
@@ -0,0 +1,47 @@
+/*
+ * dustmap-node
+ *
+ *
+ * Copyright (C) 2013 Christian Pointner <equinox@spreadspace.org>
+ *
+ * This file is part of dustmap-node.
+ *
+ * dustmap-node is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * any later version.
+ *
+ * dustmap-node is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with dustmap-node. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "contiki-net.h"
+#include "telnetd.h"
+#include "shell.h"
+
+/*---------------------------------------------------------------------------*/
+PROCESS(shell_init_process, "Shell init process");
+/*---------------------------------------------------------------------------*/
+PROCESS_THREAD(shell_init_process, ev, data)
+{
+ PROCESS_BEGIN();
+
+ shell_file_init();
+ shell_httpd_init();
+ shell_irc_init();
+ shell_ps_init();
+ shell_run_init();
+ shell_text_init();
+ shell_time_init();
+ shell_wget_init();
+
+ PROCESS_END();
+}
+/*---------------------------------------------------------------------------*/
+AUTOSTART_PROCESSES(&telnetd_process, &shell_init_process);
+/*---------------------------------------------------------------------------*/