Powerswitch modification

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply

Powerswitch modification

Post by David » Tue Dec 11, 2007 5:50 pm


The last days i was trying to get a modificated Powerswitch firmware working. I changed the code to fit my needs, and now windows says unknown device found.

I removed all the outputByte, eepromread and write, computetemporarychanges, computeoutputstatus and timerinterrupt functions because I handle the transmited data differently.

I need to know which functions are nececary for the firmware to work and get recognized properly.

Thanks in advice
David Sere

Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Fri Dec 14, 2007 7:54 pm

PowerSwitch is a good example because, if you compile it with TEST_DRIVER_SIZE defined, it generates the minimum USB devices which is recognized by the host. Please note that you need to disconnect and reconnect it manually after flashing the firmware because the disconnect code is not compiled in.

Post Reply