I've searched the forum and didn't find anything seemingly relevant to my problem.
I get the following errors:
Code: Select all
Creating I2C Display Library v2.xe
cd .build && xcc -O2 -g @_obj.rsp '.././XCORE-200-EXPLORER.xn' '.././config.xscope' -o '../bin//I2C Display Library v2.xe'
../src/main.xc: Error: Undefined reference to 'initDisplayType4004'
../src/main.xc: Error: Undefined reference to 'messagesDisplay'
xmake[1]: *** [bin//I2C Display Library v2.xe] Error 1
xmake: *** [bin//I2C Display Library v2.xe] Error 2
The code is as follows:
Code: Select all
#include "main.h"
#include "I2C_Services.h"
#include "DisplaysI2C.h"
#include "ErrorCodes.h"
int main(){
interface I2Cbus busI2C;
interface I2C initDisp;
interface I2C updateDisp;
chan I2c1Stat;
chan messageStat;
par {
on tile[0]: initialization(busI2C);
on tile[0]: serveI2C(busI2C, initDisp, updateDisp);
on tile[0]: displayUpdate(I2c1Stat, messageStat);
on tile[0]: updateStatusLEDs(messageStat);
}
return 0;
}
void initialization(interface I2Cbus client busI2C){
startState = 0;
interface I2C initDisp;
while(1){
switch (startState) {
case 0:{
busI2C.init();
startState = 1;
break;
}
case 1:{
initDisplayType4004(Address1, dispMode, initDisp);
initDisplayType4004(Address2, dispMode, initDisp);
startState = 2;
break;
}
case 2:{
messagesDisplay();
break;
}
} // End switch
} // End while
}
I'm using xTIMEcomposer Community_14.3.3 (build 22296, Apr-19-2018) on MacOS Mojave 10.14.6