macchina / LIN

Arduino library to add dual LIN support on SAM3X based boards with a TJA1021/TJA1027 transceiver
MIT License
108 stars 46 forks source link

lin for bluepill stmf103 #10

Open wchpikus opened 4 years ago

wchpikus commented 4 years ago

Hello. Is it possible to add lin for this mcu? Arduino report error compile with names.

wchpikus commented 4 years ago

i have problem to compile it with errors:

C:\Users\W77FE~1.CHM\AppData\Local\Temp\arduino_build_248717\sketch\lin_stack.cpp: In member function 'int lin_stack::serial_pause(int)': lin_stack.cpp:230:5: error: 'GPIO13' was not declared in this scope PORTA->PIO_PER = PIO_PA13; // enable PIO register ^ lin_stack.cpp:230:23: error: 'PIO_PA13' was not declared in this scope PORTA->PIO_PER = PIO_PA13; // enable PIO register ^ lin_stack.cpp:231:5: error: 'PORTA' was not declared in this scope PORTA->PIO_OER = PIO_PA13; // enable PA13 as output ^ lin_stack.cpp:238:5: error: 'PORTA' was not declared in this scope PORTA->PIO_PER = PIO_PA11; // enable PIO register ^ lin_stack.cpp:238:22: error: 'PIO_PA11' was not declared in this scope PORTA->PIO_PER = PIO_PA11; // enable PIO register ^ exit status 1 'GPIO13' was not declared in this scope