Contiki 2.6
|
00001 #include <usb-api.h> 00002 00003 #ifdef USB_STM32F103_ENABLE_ALT_COPY 00004 /* Use an alternate data copying function */ 00005 #define USB_BUFFER_ARCH_ALT_COPY USB_BUFFER_ARCH_FLAG_1 00006 00007 /* Copy len bytes of data from the buffer to dedicated USB 00008 memory. buffer->data must be updated */ 00009 extern void 00010 copy_to_hw_buffer(USBBuffer *buffer,unsigned int offset, unsigned int len); 00011 00012 /* Copy len bytes of data to the buffer from dedicated USB memory. 00013 buffer->data must be updated */ 00014 extern void 00015 copy_from_hw_buffer(USBBuffer *buffer,unsigned int offset, unsigned int len); 00016 #endif 00017