1 #ifndef __USB_ARCH_H__0Z52ZDP0H6__
2 #define __USB_ARCH_H__0Z52ZDP0H6__
4 #include <contiki-conf.h>
9 #ifndef USB_MAX_ENDPOINTS
10 #define USB_MAX_ENDPOINTS 4
14 #define CTRL_EP_SIZE 8
18 #define USB_EP1_SIZE 8
21 #define USB_EP2_SIZE 8
24 #define USB_EP3_SIZE 8
27 #define USB_EP4_SIZE 0
30 #define USB_EP5_SIZE 0
33 #define USB_EP6_SIZE 0
36 #define USB_EP7_SIZE 0
41 #define MAX_CTRL_DATA 128
48 usb_arch_setup_control_endpoint(uint8_t addr);
51 usb_arch_setup_bulk_endpoint(uint8_t addr);
54 usb_arch_setup_interrupt_endpoint(uint8_t addr);
57 usb_arch_disable_endpoint(uint8_t addr);
60 usb_arch_discard_all_buffers(uint8_t addr);
65 usb_arch_control_stall(uint8_t addr);
69 usb_arch_halt_endpoint(uint8_t addr,
int halt);
72 usb_arch_set_configuration(uint8_t usb_configuration_value);
75 usb_arch_get_ep_status(uint8_t addr);
78 usb_arch_set_address(uint8_t addr);
83 usb_arch_set_global_event_process(
struct process *p);
86 usb_arch_get_global_events(
void);
90 usb_arch_send_pending(uint8_t ep_addr);