hello
i am receiving an error message as follows :
Error compiling for board Teensy 3.5.
i checked my tools > board and it is teensy 3.5 like it should be
i suspect it has got to do with
cause when i remove it from my code it doesn't show that error .
any suggestions how to continue ?
the entire code :
i am receiving an error message as follows :
Error compiling for board Teensy 3.5.
i checked my tools > board and it is teensy 3.5 like it should be
i suspect it has got to do with
Code:
#define SIMPLEFIFO_LARGE
#include <SimpleFIFO.h>
any suggestions how to continue ?
the entire code :
Code:
// PTA (12 13) = [3 4] // ready signal and XS2
// PTB (0 1 2 3) = [16 17 19 18] // For address bits
// PTC (0 1 2 3 4 5 6 7 8 9 10 11) = [15 22 23 9 10 13 11 12 35 36 37 38] // For digital inputs from NI cards
#define SIMPLEFIFO_LARGE
#include <SimpleFIFO.h>
byte inputPins[] = {3, 4, 16, 17, 19, 18, 15, 22, 23, 9, 10, 13, 11, 12, 35, 36, 37, 38};
int Dready = 3 ;// data ready pin number
int isCharOn = 0; //set to 1 when fifo bit was sent , to 0 when port cleared
elapsedMillis charTime;
unsigned int onDur = 25;
unsigned long tPeriod = 20000;
unsigned long timeOut = 100;
SimpleFIFO <long, 255> sFIFO;
void strobe(void) {
if (!digitalReadFast(Dready)&& GPIOB_PDIR = 7) {
sFIFO.enqueue(GPIOC_PDIR & 0xFF);
}
}
void charOut() {
if (sFIFO.count() > 0){
if (GPIOD_PDOR = 0x00) {
GPIOD_PDOR = sFIFO.dequeue();
isCharOn=1;
charTime = 0;
}
else {
sFIFO.flush();
}
}
}
void setup() {
//Serial.begin(9600);
//while(!Serial);
for (int pinnum = 0; pinnum < 18; pinnum++) {
//pinMode(inputPins[pinnum], INPUT_PULLDOWN);
pinMode(inputPins[pinnum], INPUT);
}
myTimerOne.priority(0);
myTimerOne.begin(strobe,1);
myTimerTwo.priority(16);
myTimerTwo.begin(charOut,100000);
}
void loop() {
if (isCharOn=1 && charTime > onDur) {
GPIOD_PDOR = 0x00;
isCharOn = 0;
charOut();
}
}