Using the SPI feature

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Re: Using the SPI feature

Postby adafruit » Tue Jul 28, 2009 9:13 pm

yay! thanks! i lost my dev environment, i thought usbdriver.h came with libusb, no?
its been years :cry:
User avatar
adafruit
 
Posts: 10550
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Using the SPI feature

Postby sgoadhouse » Tue Aug 25, 2009 7:14 pm

Sorry for the slow response ...

I could not find usbdriver.h in libusb, at least not the version I had to work with. I took your usbtiny.h from avrdude and created it. It was missing some defines that I figured out by looking at the usbtiny firmware. It was mainly the numbers for the commands.
sgoadhouse
 
Posts: 6
Joined: Mon Jul 13, 2009 5:59 pm

Re: Using the SPI feature

Postby Cyberspice » Sat Jan 02, 2010 9:26 am

I've just been looking at the example code in the tarball (as I want to debug code in an ATTiny25 and I don't get much choice with the I/O). The usbdriver.h header is missing from the tarball so most of the defines are missing.

usb.h is the header file for libusb (v0.1, v1.0 has a different API) so you may need to install the libusb-dev package (or equivalent) on Linux for that. Since I'm OS X I'm going to steal it the header from my linux box. I have the library from installing the cross-pack tools.

I'm an embedded software engineer by default and I often have to debug, analyse and extend other people's code so I'm just going to look at avrdude and work out how it works from there. If you'd like a new example I'd be willing to write one.

Melanie
User avatar
Cyberspice
 
Posts: 1
Joined: Thu Jul 23, 2009 6:34 pm
Location: Yorkshire UK / Silicon Valley CA

Previous

Return to USBtinyISP

Who is online

Users browsing this forum: No registered users and 4 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]