Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed mbed-STM32F103C8T6
globals.cpp@11:b571de4666c9, 2020-07-29 (annotated)
- Committer:
- lorded
- Date:
- Wed Jul 29 16:48:19 2020 +0000
- Revision:
- 11:b571de4666c9
- Parent:
- 7:467e350d1a10
Espar
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pangsk | 0:908be729d27c | 1 | #include "globals.h" |
pangsk | 0:908be729d27c | 2 | |
pangsk | 3:05bb8f0bd7a4 | 3 | |
pangsk | 0:908be729d27c | 4 | |
lorded | 11:b571de4666c9 | 5 | DigitalOut led1 (PB_1); // is present |
RogerJKelly | 7:467e350d1a10 | 6 | DigitalOut led2 (PA_5); // not present on Maple Mini |
RogerJKelly | 7:467e350d1a10 | 7 | DigitalOut led3 (PA_6); // not present on Maple Mini |
RogerJKelly | 7:467e350d1a10 | 8 | DigitalOut led4 (PA_7); // not present on Maple Mini |
pangsk | 0:908be729d27c | 9 | |
pangsk | 0:908be729d27c | 10 | // We use can on mbed pins 29(CAN_TXD) and 30(CAN_RXD). |
RogerJKelly | 7:467e350d1a10 | 11 | //CAN can2(p30, p29); // for LPC1768 |
RogerJKelly | 7:467e350d1a10 | 12 | CAN can2(PA_11, PA_12); // for Blue Pill 64K Maple Mini |
RogerJKelly | 7:467e350d1a10 | 13 | // OR can on mbed pins 10(CAN_TXD) and 9(CAN_RXD). |
RogerJKelly | 7:467e350d1a10 | 14 | //CAN can1(p9, p10); |
pangsk | 6:41a4ad385daa | 15 | CANMessage can_MsgRx; |
RogerJKelly | 7:467e350d1a10 | 16 | |
RogerJKelly | 7:467e350d1a10 | 17 | int got_alt = false; |
RogerJKelly | 7:467e350d1a10 | 18 | |
RogerJKelly | 7:467e350d1a10 | 19 | unsigned char alt[3]; |
RogerJKelly | 7:467e350d1a10 | 20 | |
RogerJKelly | 7:467e350d1a10 | 21 | //Serial pc(USBTX, USBRX); -- for LPC1768 |
RogerJKelly | 7:467e350d1a10 | 22 | Serial pc(PA_2, PA_3); // for Maple Mini |