im working on a drawbitbap from sd function using petitfatfs for a gaming project and I keep getting these errors
Arduino: 1.6.11 (Windows 7), TD: 1.30-beta3, Board: "Teensy 3.2 / 3.1, Serial, 72 MHz optimize speed, US English"
drawBitmapFromSd: In function 'byte rx()':
drawBitmapFromSd:34: error: 'loop_until_bit_is_set' was not declared in this scope
byte rx() { SPDR=0xFF; loop_until_bit_is_set(SPSR, SPIF); return SPDR; }
^
drawBitmapFromSd: In function 'void tx(byte)':
drawBitmapFromSd:35: error: 'loop_until_bit_is_set' was not declared in this scope
void tx(byte d) { SPDR=d; loop_until_bit_is_set(SPSR, SPIF); }
^
the arrow points at the spif in these functions but I cant find any reference or idea on how to fix this error. am I missing a ; or something in the line?
the note for the two functions say they are needed by petitfafs to work. at the moment I have them in the display files cpp but maybe they should be in the .h file or the beginning of the sketch but when I try to compile the original sketch I get the same errors.
Moved to programming questions
drawBitmapFromSd.ino (37.9 KB)
petit_fatfs.zip (17.5 KB)