Hello Luni,

It's look like the callback for timers must be void functions without any parameter. Is that it ?



Code:
#define RefreshADCPeriod 40

PeriodicTimer ReadADC1(TCK);
PeriodicTimer ReadADC2(TCK);

void setup (){
  ReadADC1.begin(timerReadADC(1), RefreshADCPeriod * 1000);
  currentMillis = millis();
  while (millis() < (currentMillis + 25));  
  ReadADC2.begin(timerReadADC(2), RefreshADCPeriod * 1000);
}

void timerReadADC(uint_fast8_t ANA) {
	if (ANA == 1) adc->adc0->startSingleRead(ANA1);
	else adc->adc0->startSingleRead(ANA2);
	return;
}
Didn't compile =>

Code:
D:\Mes documents\Arduino\CAN_DISPLAY_v2.1\CAN_DISPLAY_v2.1.ino:845:58: error: invalid use of void expression
   ReadADC1.begin(timerReadADC(1), RefreshADCPeriod * 1000);
                                                          ^
D:\Mes documents\Arduino\CAN_DISPLAY_v2.1\CAN_DISPLAY_v2.1.ino:848:58: error: invalid use of void expression
   ReadADC2.begin(timerReadADC(2), RefreshADCPeriod * 1000);
But if I use two callback functions it's OK.

Thank you,
Manu