When I #include this library, it won't highlight in orange like the other libraries. But I imported the zip in accordance with the directions. I also changed the zip name to t3spi, to match the .h and .cpp files. So, with only the #include added to the sketch, the following are the compilation errors. I can't figure it out, any tips?
In file included from AK_remote_sensing.ino:1:0:
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:61:35: warning: backslash and newline separated by space [enabled by default]
define SPI_WRITE_8(c,CTARn, PCS) \
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:68:36: warning: backslash and newline separated by space [enabled by default]
define SPI_WRITE_16(w,CTARn, PCS) \
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'SPCRemulation& SPCRemulation::operator=(int)':
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:822:4: note: in expansion of macro 'SPI0_CTAR0'
SPI0_CTAR0 = SPI_CTAR_FMSZ(7) | SPI_CTAR_PBR(1) | SPI_CTAR_BR(1) | SPI_CTAR_CSSCK(1);
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:822:4: note: in expansion of macro 'SPI0_CTAR0'
SPI0_CTAR0 = SPI_CTAR_FMSZ(7) | SPI_CTAR_PBR(1) | SPI_CTAR_BR(1) | SPI_CTAR_CSSCK(1);
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:852:12: note: in expansion of macro 'SPI0_CTAR0'
ctar |= (SPI0_CTAR0 & SPI_CTAR_DBR);
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:852:12: note: in expansion of macro 'SPI0_CTAR0'
ctar |= (SPI0_CTAR0 & SPI_CTAR_DBR);
^
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:23:0,
from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/Arduino.h:1,
from AK_remote_sensing.ino:16:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:852:38: error: expected ')' before ';' token
ctar |= (SPI0_CTAR0 & SPI_CTAR_DBR);
^
In file included from AK_remote_sensing.ino:1:0:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'SPCRemulation& SPCRemulation::operator|=(int)':
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:881:4: note: in expansion of macro 'SPI0_CTAR0'
SPI0_CTAR0 = SPI_CTAR_FMSZ(7) | SPI_CTAR_PBR(1) | SPI_CTAR_BR(1);
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:881:4: note: in expansion of macro 'SPI0_CTAR0'
SPI0_CTAR0 = SPI_CTAR_FMSZ(7) | SPI_CTAR_PBR(1) | SPI_CTAR_BR(1);
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:884:20: note: in expansion of macro 'SPI0_CTAR0'
uint32_t ctar = SPI0_CTAR0;
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:884:20: note: in expansion of macro 'SPI0_CTAR0'
uint32_t ctar = SPI0_CTAR0;
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'SPCRemulation& SPCRemulation::operator&=(int)':
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:922:20: note: in expansion of macro 'SPI0_CTAR0'
uint32_t ctar = SPI0_CTAR0;
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:922:20: note: in expansion of macro 'SPI0_CTAR0'
uint32_t ctar = SPI0_CTAR0;
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'int SPCRemulation::operator&(int) const':
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:947:29: note: in expansion of macro 'SPI0_CTAR0'
if ((val & (1<<DORD)) && (SPI0_CTAR0 & SPI_CTAR_LSBFE)) ret |= (1<<DORD);
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:947:29: note: in expansion of macro 'SPI0_CTAR0'
if ((val & (1<<DORD)) && (SPI0_CTAR0 & SPI_CTAR_LSBFE)) ret |= (1<<DORD);
^
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:23:0,
from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/Arduino.h:1,
from AK_remote_sensing.ino:16:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:947:75: error: expected ')' before ';' token
if ((val & (1<<DORD)) && (SPI0_CTAR0 & SPI_CTAR_LSBFE)) ret |= (1<<DORD);
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:947:75: error: expected ')' before ';' token
In file included from AK_remote_sensing.ino:1:0:
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:948:29: note: in expansion of macro 'SPI0_CTAR0'
if ((val & (1<<CPOL)) && (SPI0_CTAR0 & SPI_CTAR_CPOL)) ret |= (1<<CPOL);
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:948:29: note: in expansion of macro 'SPI0_CTAR0'
if ((val & (1<<CPOL)) && (SPI0_CTAR0 & SPI_CTAR_CPOL)) ret |= (1<<CPOL);
^
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:23:0,
from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/Arduino.h:1,
from AK_remote_sensing.ino:16:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:948:74: error: expected ')' before ';' token
if ((val & (1<<CPOL)) && (SPI0_CTAR0 & SPI_CTAR_CPOL)) ret |= (1<<CPOL);
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:948:74: error: expected ')' before ';' token
In file included from AK_remote_sensing.ino:1:0:
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:949:29: note: in expansion of macro 'SPI0_CTAR0'
if ((val & (1<<CPHA)) && (SPI0_CTAR0 & SPI_CTAR_CPHA)) ret |= (1<<CPHA);
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:949:29: note: in expansion of macro 'SPI0_CTAR0'
if ((val & (1<<CPHA)) && (SPI0_CTAR0 & SPI_CTAR_CPHA)) ret |= (1<<CPHA);
^
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:23:0,
from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/Arduino.h:1,
from AK_remote_sensing.ino:16:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:949:74: error: expected ')' before ';' token
if ((val & (1<<CPHA)) && (SPI0_CTAR0 & SPI_CTAR_CPHA)) ret |= (1<<CPHA);
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:949:74: error: expected ')' before ';' token
In file included from AK_remote_sensing.ino:1:0:
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:951:19: note: in expansion of macro 'SPI0_CTAR0'
uint32_t dbr = SPI0_CTAR0 & 15;
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:951:19: note: in expansion of macro 'SPI0_CTAR0'
uint32_t dbr = SPI0_CTAR0 & 15;
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'SPCRemulation::operator int() const':
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:975:15: note: in expansion of macro 'SPI0_CTAR0'
int ctar = SPI0_CTAR0;
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:975:15: note: in expansion of macro 'SPI0_CTAR0'
int ctar = SPI0_CTAR0;
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In static member function 'static void SPCRemulation::update_ctar(uint32_t)':
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1010:7: note: in expansion of macro 'SPI0_CTAR0'
if (SPI0_CTAR0 == ctar) return;
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1010:7: note: in expansion of macro 'SPI0_CTAR0'
if (SPI0_CTAR0 == ctar) return;
^
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:23:0,
from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/Arduino.h:1,
from AK_remote_sensing.ino:16:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1010:33: error: expected ')' before ';' token
if (SPI0_CTAR0 == ctar) return;
^
In file included from AK_remote_sensing.ino:1:0:
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1013:4: note: in expansion of macro 'SPI0_CTAR0'
SPI0_CTAR0 = ctar;
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1013:4: note: in expansion of macro 'SPI0_CTAR0'
SPI0_CTAR0 = ctar;
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1016:4: note: in expansion of macro 'SPI0_CTAR0'
SPI0_CTAR0 = ctar;
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1016:4: note: in expansion of macro 'SPI0_CTAR0'
SPI0_CTAR0 = ctar;
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'SPSRemulation& SPSRemulation::operator=(int)':
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1056:19: note: in expansion of macro 'SPI0_CTAR0'
uint32_t ctar = SPI0_CTAR0;
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1056:19: note: in expansion of macro 'SPI0_CTAR0'
uint32_t ctar = SPI0_CTAR0;
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'SPSRemulation& SPSRemulation::operator|=(int)':
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1074:52: note: in expansion of macro 'SPI0_CTAR0'
if (val & (1<<SPI2X)) SPCRemulation::update_ctar(SPI0_CTAR0 |= SPI_CTAR_DBR);
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1074:52: note: in expansion of macro 'SPI0_CTAR0'
if (val & (1<<SPI2X)) SPCRemulation::update_ctar(SPI0_CTAR0 |= SPI_CTAR_DBR);
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'SPSRemulation& SPSRemulation::operator&=(int)':
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1081:55: note: in expansion of macro 'SPI0_CTAR0'
if (!(val & (1<<SPI2X))) SPCRemulation::update_ctar(SPI0_CTAR0 &= ~SPI_CTAR_DBR);
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1081:55: note: in expansion of macro 'SPI0_CTAR0'
if (!(val & (1<<SPI2X))) SPCRemulation::update_ctar(SPI0_CTAR0 &= ~SPI_CTAR_DBR);
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'int SPSRemulation::operator&(int) const':
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1098:30: note: in expansion of macro 'SPI0_CTAR0'
if ((val & (1<<SPI2X)) && (SPI0_CTAR0 & SPI_CTAR_DBR)) ret |= (1<<SPI2X);
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1098:30: note: in expansion of macro 'SPI0_CTAR0'
if ((val & (1<<SPI2X)) && (SPI0_CTAR0 & SPI_CTAR_DBR)) ret |= (1<<SPI2X);
^
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:23:0,
from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/Arduino.h:1,
from AK_remote_sensing.ino:16:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1098:75: error: expected ')' before ';' token
if ((val & (1<<SPI2X)) && (SPI0_CTAR0 & SPI_CTAR_DBR)) ret |= (1<<SPI2X);
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1098:75: error: expected ')' before ';' token
In file included from AK_remote_sensing.ino:1:0:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'SPSRemulation::operator int() const':
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1106:7: note: in expansion of macro 'SPI0_CTAR0'
if (SPI0_CTAR0 & SPI_CTAR_DBR) ret |= (1<<SPI2X);
^
C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1106:7: note: in expansion of macro 'SPI0_CTAR0'
if (SPI0_CTAR0 & SPI_CTAR_DBR) ret |= (1<<SPI2X);
^
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:23:0,
from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/Arduino.h:1,
from AK_remote_sensing.ino:16:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1106:51: error: expected ')' before ';' token
if (SPI0_CTAR0 & SPI_CTAR_DBR) ret |= (1<<SPI2X);
^
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
When I #include this library, it won't highlight in orange like the other libraries. But I imported the zip in accordance with the directions. I also changed the zip name to t3spi, to match the .h and .cpp files. So, with only the #include added to the sketch, the following are the compilation errors. I can't figure it out, any tips?
Arduino: 1.6.3 (Windows 8.1), TD: 1.24, Board: "Teensy 3.1, Serial, 96 MHz optimized (overclock), US English"
In file included from AK_remote_sensing.ino:1:0: C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:61:35: warning: backslash and newline separated by space [enabled by default]
define SPI_WRITE_8(c,CTARn, PCS) \
^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:68:36: warning: backslash and newline separated by space [enabled by default]
define SPI_WRITE_16(w,CTARn, PCS) \
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'SPCRemulation& SPCRemulation::operator=(int)': C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:822:4: note: in expansion of macro 'SPI0_CTAR0' SPI0_CTAR0 = SPI_CTAR_FMSZ(7) | SPI_CTAR_PBR(1) | SPI_CTAR_BR(1) | SPI_CTAR_CSSCK(1); ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:822:4: note: in expansion of macro 'SPI0_CTAR0' SPI0_CTAR0 = SPI_CTAR_FMSZ(7) | SPI_CTAR_PBR(1) | SPI_CTAR_BR(1) | SPI_CTAR_CSSCK(1); ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:852:12: note: in expansion of macro 'SPI0_CTAR0' ctar |= (SPI0_CTAR0 & SPI_CTAR_DBR); ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:852:12: note: in expansion of macro 'SPI0_CTAR0' ctar |= (SPI0_CTAR0 & SPI_CTAR_DBR); ^ In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:23:0, from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/Arduino.h:1, from AK_remote_sensing.ino:16: C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:852:38: error: expected ')' before ';' token ctar |= (SPI0_CTAR0 & SPI_CTAR_DBR); ^ In file included from AK_remote_sensing.ino:1:0: C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'SPCRemulation& SPCRemulation::operator|=(int)': C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:881:4: note: in expansion of macro 'SPI0_CTAR0' SPI0_CTAR0 = SPI_CTAR_FMSZ(7) | SPI_CTAR_PBR(1) | SPI_CTAR_BR(1); ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:881:4: note: in expansion of macro 'SPI0_CTAR0' SPI0_CTAR0 = SPI_CTAR_FMSZ(7) | SPI_CTAR_PBR(1) | SPI_CTAR_BR(1); ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:884:20: note: in expansion of macro 'SPI0_CTAR0' uint32_t ctar = SPI0_CTAR0; ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:884:20: note: in expansion of macro 'SPI0_CTAR0' uint32_t ctar = SPI0_CTAR0; ^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'SPCRemulation& SPCRemulation::operator&=(int)': C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:922:20: note: in expansion of macro 'SPI0_CTAR0' uint32_t ctar = SPI0_CTAR0; ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:922:20: note: in expansion of macro 'SPI0_CTAR0' uint32_t ctar = SPI0_CTAR0; ^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'int SPCRemulation::operator&(int) const': C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:947:29: note: in expansion of macro 'SPI0_CTAR0' if ((val & (1<<DORD)) && (SPI0_CTAR0 & SPI_CTAR_LSBFE)) ret |= (1<<DORD); ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:947:29: note: in expansion of macro 'SPI0_CTAR0' if ((val & (1<<DORD)) && (SPI0_CTAR0 & SPI_CTAR_LSBFE)) ret |= (1<<DORD); ^ In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:23:0, from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/Arduino.h:1, from AK_remote_sensing.ino:16: C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:947:75: error: expected ')' before ';' token if ((val & (1<<DORD)) && (SPI0_CTAR0 & SPI_CTAR_LSBFE)) ret |= (1<<DORD); ^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:947:75: error: expected ')' before ';' token In file included from AK_remote_sensing.ino:1:0: C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:948:29: note: in expansion of macro 'SPI0_CTAR0' if ((val & (1<<CPOL)) && (SPI0_CTAR0 & SPI_CTAR_CPOL)) ret |= (1<<CPOL); ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:948:29: note: in expansion of macro 'SPI0_CTAR0' if ((val & (1<<CPOL)) && (SPI0_CTAR0 & SPI_CTAR_CPOL)) ret |= (1<<CPOL); ^ In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:23:0, from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/Arduino.h:1, from AK_remote_sensing.ino:16: C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:948:74: error: expected ')' before ';' token if ((val & (1<<CPOL)) && (SPI0_CTAR0 & SPI_CTAR_CPOL)) ret |= (1<<CPOL); ^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:948:74: error: expected ')' before ';' token In file included from AK_remote_sensing.ino:1:0: C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:949:29: note: in expansion of macro 'SPI0_CTAR0' if ((val & (1<<CPHA)) && (SPI0_CTAR0 & SPI_CTAR_CPHA)) ret |= (1<<CPHA); ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:949:29: note: in expansion of macro 'SPI0_CTAR0' if ((val & (1<<CPHA)) && (SPI0_CTAR0 & SPI_CTAR_CPHA)) ret |= (1<<CPHA); ^ In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:23:0, from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/Arduino.h:1, from AK_remote_sensing.ino:16: C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:949:74: error: expected ')' before ';' token if ((val & (1<<CPHA)) && (SPI0_CTAR0 & SPI_CTAR_CPHA)) ret |= (1<<CPHA); ^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:949:74: error: expected ')' before ';' token In file included from AK_remote_sensing.ino:1:0: C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:951:19: note: in expansion of macro 'SPI0_CTAR0' uint32_t dbr = SPI0_CTAR0 & 15; ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:951:19: note: in expansion of macro 'SPI0_CTAR0' uint32_t dbr = SPI0_CTAR0 & 15; ^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'SPCRemulation::operator int() const': C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:975:15: note: in expansion of macro 'SPI0_CTAR0' int ctar = SPI0_CTAR0; ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:975:15: note: in expansion of macro 'SPI0_CTAR0' int ctar = SPI0_CTAR0; ^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In static member function 'static void SPCRemulation::update_ctar(uint32_t)': C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1010:7: note: in expansion of macro 'SPI0_CTAR0' if (SPI0_CTAR0 == ctar) return; ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1010:7: note: in expansion of macro 'SPI0_CTAR0' if (SPI0_CTAR0 == ctar) return; ^ In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:23:0, from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/Arduino.h:1, from AK_remote_sensing.ino:16: C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1010:33: error: expected ')' before ';' token if (SPI0_CTAR0 == ctar) return; ^ In file included from AK_remote_sensing.ino:1:0: C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1013:4: note: in expansion of macro 'SPI0_CTAR0' SPI0_CTAR0 = ctar; ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1013:4: note: in expansion of macro 'SPI0_CTAR0' SPI0_CTAR0 = ctar; ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1016:4: note: in expansion of macro 'SPI0_CTAR0' SPI0_CTAR0 = ctar; ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1016:4: note: in expansion of macro 'SPI0_CTAR0' SPI0_CTAR0 = ctar; ^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'SPSRemulation& SPSRemulation::operator=(int)': C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1056:19: note: in expansion of macro 'SPI0_CTAR0' uint32_t ctar = SPI0_CTAR0; ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1056:19: note: in expansion of macro 'SPI0_CTAR0' uint32_t ctar = SPI0_CTAR0; ^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'SPSRemulation& SPSRemulation::operator|=(int)': C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1074:52: note: in expansion of macro 'SPI0_CTAR0' if (val & (1<<SPI2X)) SPCRemulation::update_ctar(SPI0_CTAR0 |= SPI_CTAR_DBR); ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1074:52: note: in expansion of macro 'SPI0_CTAR0' if (val & (1<<SPI2X)) SPCRemulation::update_ctar(SPI0_CTAR0 |= SPI_CTAR_DBR); ^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'SPSRemulation& SPSRemulation::operator&=(int)': C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1081:55: note: in expansion of macro 'SPI0_CTAR0' if (!(val & (1<<SPI2X))) SPCRemulation::update_ctar(SPI0_CTAR0 &= ~SPI_CTAR_DBR); ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1081:55: note: in expansion of macro 'SPI0_CTAR0' if (!(val & (1<<SPI2X))) SPCRemulation::update_ctar(SPI0_CTAR0 &= ~SPI_CTAR_DBR); ^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'int SPSRemulation::operator&(int) const': C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1098:30: note: in expansion of macro 'SPI0_CTAR0' if ((val & (1<<SPI2X)) && (SPI0_CTAR0 & SPI_CTAR_DBR)) ret |= (1<<SPI2X); ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1098:30: note: in expansion of macro 'SPI0_CTAR0' if ((val & (1<<SPI2X)) && (SPI0_CTAR0 & SPI_CTAR_DBR)) ret |= (1<<SPI2X); ^ In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:23:0, from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/Arduino.h:1, from AK_remote_sensing.ino:16: C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1098:75: error: expected ')' before ';' token if ((val & (1<<SPI2X)) && (SPI0_CTAR0 & SPI_CTAR_DBR)) ret |= (1<<SPI2X); ^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1098:75: error: expected ')' before ';' token In file included from AK_remote_sensing.ino:1:0: C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h: In member function 'SPSRemulation::operator int() const': C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected unqualified-id before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1106:7: note: in expansion of macro 'SPI0_CTAR0' if (SPI0_CTAR0 & SPI_CTAR_DBR) ret |= (1<<SPI2X); ^ C:\Users\eric\Documents\Arduino\libraries\t3spi/t3spi.h:28:18: error: expected ')' before numeric constant
define CTAR0 0
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/kinetis.h:2194:36: note: in expansion of macro 'CTAR0'
define SPI0_CTAR0 (KINETISK_SPI0.CTAR0) // DSPI Clock and Transfer Attributes Register, In Master Mode
^ C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1106:7: note: in expansion of macro 'SPI0_CTAR0' if (SPI0_CTAR0 & SPI_CTAR_DBR) ret |= (1<<SPI2X); ^ In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/WProgram.h:23:0, from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/Arduino.h:1, from AK_remote_sensing.ino:16: C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/avr_emulation.h:1106:51: error: expected ')' before ';' token if (SPI0_CTAR0 & SPI_CTAR_DBR) ret |= (1<<SPI2X); ^ Error compiling.
This report would have more information with "Show verbose output during compilation" enabled in File > Preferences.