/* * pcremote-hid * * Copyright (C) 2014 Michael Buesch * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 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. */ #include "pdiusb.h" #include "util.h" #include "debug.h" int main(void) { irq_disable(); pdiusb_configure_clkout(); usart_init(); printstr("pcremote-hid startup...\n"); if (pdiusb_init()) printstr("PDIUSB initialization failed\n"); printstr("running.\n"); irq_enable(); while (1) { pdiusb_work(); } }