]> git.zerfleddert.de Git - fnordlicht-mini/blobdiff - firmware/fnordlicht-controller/fcontrol.c
delete more stuff
[fnordlicht-mini] / firmware / fnordlicht-controller / fcontrol.c
diff --git a/firmware/fnordlicht-controller/fcontrol.c b/firmware/fnordlicht-controller/fcontrol.c
deleted file mode 100644 (file)
index f5bce8f..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-/* vim:ts=4 sts=4 et tw=80
- *
- *         fnordlicht firmware
- *
- *    for additional information please
- *    see http://lochraster.org/fnordlichtmini
- *
- * (c) by Alexander Neumann <alexander@bumpern.de>
- *     Lars Noschinski <lars@public.noschinski.de>
- *
- * This program is free software: you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 3 as published by
- * the Free Software Foundation.
- *
- * This program 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
- * this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-/* includes */
-#include "globals.h"
-#include "../common/io.h"
-
-#include <stdint.h>
-#include <avr/interrupt.h>
-#include <avr/pgmspace.h>
-#include <avr/wdt.h>
-
-#include "../common/common.h"
-#include "usb.h"
-#include "timer.h"
-#include "uart.h"
-#include "ui.h"
-#include "ir.h"
-
-/* NEVER CALL DIRECTLY! */
-void disable_watchdog(void) \
-  __attribute__((naked)) \
-  __attribute__((section(".init3")));
-void disable_watchdog(void)
-{
-    MCUSR = 0;
-    wdt_disable();
-}
-
-/** main function
- */
-int main(void)
-{
-    usb_init();
-    timer_init();
-    uart_init();
-    ui_init();
-    ir_init();
-    ir_set_mode(IR_RECEIVE);
-
-    /* enable interrupts globally */
-    sei();
-
-    usb_enable();
-
-    ui_blink(0x03, 0);
-
-    while (1) {
-        usb_poll();
-        ui_poll();
-        ir_poll();
-    }
-}
Impressum, Datenschutz