Additional CAN example

Committer:
mab5449
Date:
Fri Jan 20 11:39:47 2017 -0600
Revision:
1:5791101761f9
Child:
2:d6cbcdb04ada
Tested the code on the LPC1768. Turns out no one implemented the driver for K64F. Also added a mbed conf file for portability. Note CAN is disconnected by default in my setup

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mab5449 1:5791101761f9 1 {
mab5449 1:5791101761f9 2 "config": {
mab5449 1:5791101761f9 3 "CAN1_rd": {
mab5449 1:5791101761f9 4 "help": "CAN1 rd pin",
mab5449 1:5791101761f9 5 "value": "NC"
mab5449 1:5791101761f9 6 },
mab5449 1:5791101761f9 7 "CAN1_td": {
mab5449 1:5791101761f9 8 "help": "CAN1 td pin",
mab5449 1:5791101761f9 9 "value": "NC"
mab5449 1:5791101761f9 10 },
mab5449 1:5791101761f9 11 "CAN2_rd": {
mab5449 1:5791101761f9 12 "help": "CAN2 rd pin",
mab5449 1:5791101761f9 13 "value": "NC"
mab5449 1:5791101761f9 14 },
mab5449 1:5791101761f9 15 "CAN2_td": {
mab5449 1:5791101761f9 16 "help": "CAN2 td pin",
mab5449 1:5791101761f9 17 "value": "NC"
mab5449 1:5791101761f9 18 }
mab5449 1:5791101761f9 19
mab5449 1:5791101761f9 20 },
mab5449 1:5791101761f9 21 "target_overrides": {
mab5449 1:5791101761f9 22 "LPC1768": {
mab5449 1:5791101761f9 23 "CAN1_rd": "p9",
mab5449 1:5791101761f9 24 "CAN1_td": "p10",
mab5449 1:5791101761f9 25 "CAN2_rd": "p30",
mab5449 1:5791101761f9 26 "CAN2_td": "p29"
mab5449 1:5791101761f9 27 }
mab5449 1:5791101761f9 28 }
mab5449 1:5791101761f9 29 }