blob: 3a7a2ea2e7f41bc74d2f5cbced096670398ab842 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/*
* pcremote-hid
*
* Copyright (C) 2014 Michael Buesch <m@bues.ch>
*
* 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();
}
}
|