summaryrefslogtreecommitdiff
path: root/usb-serial
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2012-05-24 23:20:40 +0000
committerChristian Pointner <equinox@spreadspace.org>2012-05-24 23:20:40 +0000
commitd1dad1111041118f74c4ef58139141724b3ea595 (patch)
treea354887d016d8eab45fac99d8c291c2d43d7cd87 /usb-serial
parentadded contrib dir (diff)
cleanup at blink Makefile
starte usb-serial project git-svn-id: https://svn.spreadspace.org/avr/trunk@33 aa12f405-d877-488e-9caf-2d797e2a1cc7
Diffstat (limited to 'usb-serial')
-rw-r--r--usb-serial/Makefile28
-rw-r--r--usb-serial/usb-serial.c39
2 files changed, 67 insertions, 0 deletions
diff --git a/usb-serial/Makefile b/usb-serial/Makefile
new file mode 100644
index 0000000..d24433d
--- /dev/null
+++ b/usb-serial/Makefile
@@ -0,0 +1,28 @@
+##
+## spreadspace avr utils
+##
+##
+## Copyright (C) 2012 Christian Pointner <equinox@spreadspace.org>
+##
+## This file is part of spreadspace avr utils.
+##
+## spreadspace avr utils 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.
+##
+## spreadspace avr utils 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 spreadspace avr utils. If not, see <http://www.gnu.org/licenses/>.
+##
+
+NAME := usb-serial
+OBJ := $(NAME).o
+LIBS := util led
+BOARD_TYPE := teensy2
+
+include ../include.mk
diff --git a/usb-serial/usb-serial.c b/usb-serial/usb-serial.c
new file mode 100644
index 0000000..851fd35
--- /dev/null
+++ b/usb-serial/usb-serial.c
@@ -0,0 +1,39 @@
+/*
+ * spreadspace avr utils
+ *
+ *
+ * Copyright (C) 2012 Christian Pointner <equinox@spreadspace.org>
+ *
+ * This file is part of spreadspace avr utils.
+ *
+ * spreadspace avr utils 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.
+ *
+ * spreadspace avr utils 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 spreadspace avr utils. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <avr/io.h>
+#include <util/delay.h>
+
+#include "util.h"
+#include "led.h"
+
+int main(void)
+{
+ cpu_init();
+ led_init();
+
+ for(;;) {
+ _delay_ms(250);
+ led_toggle();
+ }
+}
+