blob: d9172eda1d39560bafba87af3ceec91f78f5371c (
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
|
#include <errno.h>
#include <include/lib_AT91SAM7.h>
#include <include/openpcd.h>
#include "dbgu.h"
#include "rc632.h"
#include "led.h"
#include "pcd_enumerate.h"
#include "usb_handler.h"
#include "openpcd.h"
#include "main.h"
void _init_func(void)
{
rc632_init();
udp_init();
rc632_test(RAH);
}
int _main_dbgu(char key)
{
return -EINVAL;
}
void _main_func(void)
{
/* first we try to get rid of pending to-be-sent stuff */
usb_out_process();
/* next we deal with incoming reqyests from USB EP1 (OUT) */
usb_in_process();
rc632_unthrottle();
}
|