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
+6
View File
@@ -120,4 +120,10 @@ enum {
ADC_CHSELR_CHSEL17 \
)
// defines for CAN BUS SUPPORT
#define HAS_CAN 1
#define PIN_CAN_RX PB_8
#define PIN_CAN_TX PB_9
#define PIN_CAN_STB PA_15
#endif