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