Working CAN code without libraries, shared code