Search found 3 matches

by Augend
Sat Feb 26, 2011 10:13 am
Forum: V-USB
Topic: how to use interrupt out transfer in vusb
Replies: 3
Views: 6880

Re: how to use interrupt out transfer in vusb

first you need to declare in usb configuration . follow these steps: 1- go to usbdrv.c 2- find this line: PROGMEM char usbDescriptorConfiguration[] = { /* USB configuration descriptor */ 3- add seven bites to the length of descriptor as followed in this line: 18 + 7 * USB_CFG_HAVE_INTRIN_ENDPOINT + ...
by Augend
Sat Feb 26, 2011 9:53 am
Forum: V-USB
Topic: #error "You must define USB_CFG_IOPORTNAME in usbconfig.h.."
Replies: 10
Views: 10814

Re: #error "You must define USB_CFG_IOPORTNAME in usbconfig.h.."

An advice: I have spent many years of my life insisting on Assembly and things like AVRStudio and spoilng every second in codes. I really advise you to use WinAVR. you can also use it in Visual Studio and benefit from its strong Intellisense and so on.
by Augend
Sat Feb 26, 2011 9:41 am
Forum: V-USB
Topic: usbPoll() in Timer0 interrupt routine.
Replies: 2
Views: 4442

Re: usbPoll() in Timer0 interrupt routine.

If you put big codes in main loop your device will not be seen in next system enumeration. calling usbpoll() in short intervals is mandatory for device recognition. if you are using a watchdog dont forget to reset it during your calculations.