![](/media/cache/group/mbed-logo-square-512_3.png.50x50_q85.png)
Additional CAN example
mbed_app.json@2:d6cbcdb04ada, 2018-10-11 (annotated)
- Committer:
- aashishc1988
- Date:
- Thu Oct 11 16:02:16 2018 +0000
- Revision:
- 2:d6cbcdb04ada
- Parent:
- 1:5791101761f9
The example was not compiling due to incorrect pinnames. Also, the example should error out properly if the board doesnt support CAN.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mab5449 | 1:5791101761f9 | 1 | { |
mab5449 | 1:5791101761f9 | 2 | "config": { |
aashishc1988 | 2:d6cbcdb04ada | 3 | "CAN1_RD": { |
mab5449 | 1:5791101761f9 | 4 | "help": "CAN1 rd pin", |
mab5449 | 1:5791101761f9 | 5 | "value": "NC" |
mab5449 | 1:5791101761f9 | 6 | }, |
aashishc1988 | 2:d6cbcdb04ada | 7 | "CAN1_TD": { |
mab5449 | 1:5791101761f9 | 8 | "help": "CAN1 td pin", |
mab5449 | 1:5791101761f9 | 9 | "value": "NC" |
mab5449 | 1:5791101761f9 | 10 | }, |
aashishc1988 | 2:d6cbcdb04ada | 11 | "CAN2_RD": { |
mab5449 | 1:5791101761f9 | 12 | "help": "CAN2 rd pin", |
mab5449 | 1:5791101761f9 | 13 | "value": "NC" |
mab5449 | 1:5791101761f9 | 14 | }, |
aashishc1988 | 2:d6cbcdb04ada | 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": { |
aashishc1988 | 2:d6cbcdb04ada | 23 | "CAN1_RD": "p9", |
aashishc1988 | 2:d6cbcdb04ada | 24 | "CAN1_TD": "p10", |
aashishc1988 | 2:d6cbcdb04ada | 25 | "CAN2_RD": "p30", |
aashishc1988 | 2:d6cbcdb04ada | 26 | "CAN2_TD": "p29" |
mab5449 | 1:5791101761f9 | 27 | } |
mab5449 | 1:5791101761f9 | 28 | } |
mab5449 | 1:5791101761f9 | 29 | } |