3331 |
kaklik |
1 |
// ====================================================================== |
|
|
2 |
// Public interface of the USB driver |
|
|
3 |
// |
3333 |
kaklik |
4 |
// Copyright 2006-2008 Dick Streefland |
3331 |
kaklik |
5 |
// |
|
|
6 |
// This is free software, licensed under the terms of the GNU General |
|
|
7 |
// Public License as published by the Free Software Foundation. |
|
|
8 |
// ====================================================================== |
|
|
9 |
|
|
|
10 |
#ifndef USB_H |
|
|
11 |
#define USB_H |
|
|
12 |
|
|
|
13 |
typedef unsigned char byte_t; |
|
|
14 |
typedef unsigned int uint_t; |
|
|
15 |
|
|
|
16 |
// usb.c |
|
|
17 |
extern void usb_init ( void ); |
|
|
18 |
extern void usb_poll ( void ); |
|
|
19 |
|
|
|
20 |
// crc.S |
|
|
21 |
extern void crc ( byte_t* data, byte_t len ); |
|
|
22 |
|
|
|
23 |
// application callback functions |
|
|
24 |
extern byte_t usb_setup ( byte_t data[8] ); |
|
|
25 |
extern void usb_out ( byte_t* data, byte_t len ); |
|
|
26 |
extern byte_t usb_in ( byte_t* data, byte_t len ); |
|
|
27 |
|
|
|
28 |
#endif // USB_H |