From 852d9bddc36b0be8e35cdbf39c027082032157e7 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 16 Nov 2012 16:58:50 +0100 Subject: [PATCH] added source headers --- src/color.c | 2 +- src/color.h | 2 +- src/main.c | 4 ++-- src/protocol.c | 25 +++++++++++++++++++++++++ src/spi.c | 2 +- src/spi.h | 2 +- src/strip.c | 26 ++++++++++++++++++++++++++ src/strip.h | 25 +++++++++++++++++++++++++ 8 files changed, 82 insertions(+), 6 deletions(-) diff --git a/src/color.c b/src/color.c index e86f9ee..dc46f95 100644 --- a/src/color.c +++ b/src/color.c @@ -1,5 +1,5 @@ /** - * Color Types + * Color types & conversion * * @copyright 2012 Steffen Vogel * @license http://www.gnu.org/licenses/gpl.txt GNU Public License diff --git a/src/color.h b/src/color.h index 51d5c50..f02a037 100644 --- a/src/color.h +++ b/src/color.h @@ -1,5 +1,5 @@ /** - * Color Types + * Color types & conversion * * @copyright 2012 Steffen Vogel * @license http://www.gnu.org/licenses/gpl.txt GNU Public License diff --git a/src/main.c b/src/main.c index ce2e9b6..23eb20c 100644 --- a/src/main.c +++ b/src/main.c @@ -1,5 +1,5 @@ /** - * Main Routine + * Main routine * * @copyright 2012 Steffen Vogel * @license http://www.gnu.org/licenses/gpl.txt GNU Public License @@ -89,7 +89,7 @@ int main(void) { strip_setdot(hsv2rgb(hsvd), i); sei(); } - _delay_ms(1); + _delay_ms(500); } else if (r & 0xff00) { uart_puts_P("error\r\n"); diff --git a/src/protocol.c b/src/protocol.c index ee01538..1878258 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -1,3 +1,28 @@ +/** + * fnordlicht protocol parser + * + * @copyright 2012 Steffen Vogel + * @license http://www.gnu.org/licenses/gpl.txt GNU Public License + * @author Steffen Vogel + * @link http://www.steffenvogel.de + */ +/* + * This file is part of fnordstripe + * + * fnordstripe 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. + * + * fnordstripe 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 fnordstripe. If not, see . + */ + /*void parse_message(uint8_t *data) { struct remote_msg_t *msg = (struct remote_msg_t *) data; diff --git a/src/spi.c b/src/spi.c index a8cd327..2c0299e 100644 --- a/src/spi.c +++ b/src/spi.c @@ -1,5 +1,5 @@ /** - * SPI Routines + * SPI routines * * @copyright 2012 Steffen Vogel * @license http://www.gnu.org/licenses/gpl.txt GNU Public License diff --git a/src/spi.h b/src/spi.h index 2eb1f9d..f3fe5dd 100644 --- a/src/spi.h +++ b/src/spi.h @@ -1,5 +1,5 @@ /** - * SPI Routines + * SPI routines * * @copyright 2012 Steffen Vogel * @license http://www.gnu.org/licenses/gpl.txt GNU Public License diff --git a/src/strip.c b/src/strip.c index afb2c50..ed7e348 100644 --- a/src/strip.c +++ b/src/strip.c @@ -1,3 +1,29 @@ +/** + * LPD6803 routines + * + * @copyright 2012 Steffen Vogel + * @license http://www.gnu.org/licenses/gpl.txt GNU Public License + * @author Steffen Vogel + * @link http://www.steffenvogel.de + */ +/* + * This file is part of fnordstripe + * + * fnordstripe 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. + * + * fnordstripe 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 fnordstripe. If not, see . + */ + + #include #include diff --git a/src/strip.h b/src/strip.h index 73990d7..cea2e72 100644 --- a/src/strip.h +++ b/src/strip.h @@ -1,3 +1,28 @@ +/** + * LPD6803 routines + * + * @copyright 2012 Steffen Vogel + * @license http://www.gnu.org/licenses/gpl.txt GNU Public License + * @author Steffen Vogel + * @link http://www.steffenvogel.de + */ +/* + * This file is part of fnordstripe + * + * fnordstripe 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. + * + * fnordstripe 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 fnordstripe. If not, see . + * + #ifndef _STRIP_H_ #define _STRIP_H_