f32c / arduino

FPGArduino source
http://www.nxlab.fer.hr/fpgarduino
68 stars 44 forks source link

SPI example will not link #7

Closed emard closed 9 years ago

emard commented 9 years ago

They used to compile, but now I don't know whazzup examples->SPI->DigitalPotControl /tmp/build1904330117572721905.tmp/DigitalPotControl.cpp.o: In function setup': (.text.setup+0x18): undefined reference toSPI'

gornjas commented 9 years ago

The problem seems to be (again) that when SPI.cpp is compiled, SPI_INTERFACES_COUNT is not greater than zero, so SPIClass SPI() instantiation at line 614 is getting wiped out by complier's preprocessor.

emard commented 9 years ago

I defined SPI_INTERFACES_COUNT in SPI.h now it compiles. Code is empty, just a placeholder to add hardware SPI support