From d1dad1111041118f74c4ef58139141724b3ea595 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 24 May 2012 23:20:40 +0000 Subject: cleanup at blink Makefile starte usb-serial project git-svn-id: https://svn.spreadspace.org/avr/trunk@33 aa12f405-d877-488e-9caf-2d797e2a1cc7 --- usb-serial/Makefile | 28 ++++++++++++++++++++++++++++ usb-serial/usb-serial.c | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 usb-serial/Makefile create mode 100644 usb-serial/usb-serial.c (limited to 'usb-serial') 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 +## +## 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 . +## + +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 + * + * 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 . + */ + +#include +#include + +#include "util.h" +#include "led.h" + +int main(void) +{ + cpu_init(); + led_init(); + + for(;;) { + _delay_ms(250); + led_toggle(); + } +} + -- cgit v1.2.3