Working CAN (#35)

* Minor fix in documentation

* Make CAN compile again

* Now able to disable uart_serial

* Boots and runs CAN

Requires matching thingset-cpp library
The placement of the ts_can.process_asap/process_1s is a little hack,
but I did want to add even more ifdefs in the main method.
Renaming the functions could do the trick.
BTW, serial and CAN thingset can be run at the same time, no problems.

* Some cleanups in the CAN interface
This commit is contained in:
hogthrob
2019-06-23 00:41:01 +02:00
committed by Martin Jäger
parent 7d02c92c7d
commit 14faa1f0e8
8 changed files with 201 additions and 115 deletions
+3
View File
@@ -1,4 +1,6 @@
#ifndef UNIT_TEST
#include "mbed.h"
#ifdef STM32F0 // STM32L0 does not have CAN
#include "can_msg_queue.h"
@@ -49,3 +51,4 @@ int CANMsgQueue::first(CANMessage& msg) {
}
#endif /* STM32F0 */
#endif