X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/fnordlicht-mini/blobdiff_plain/24562c8a748c379de491019607921e5959459464..745723e4d1fee18fc31d79172fe8357a75628eea:/firmware/fnordlicht-controller/fcontrol.c diff --git a/firmware/fnordlicht-controller/fcontrol.c b/firmware/fnordlicht-controller/fcontrol.c deleted file mode 100644 index f5bce8f..0000000 --- a/firmware/fnordlicht-controller/fcontrol.c +++ /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 - * Lars Noschinski - * - * 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 . - */ - -/* includes */ -#include "globals.h" -#include "../common/io.h" - -#include -#include -#include -#include - -#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(); - } -}