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
- Committer:
- RogerJKelly
- Date:
- 2020-06-10
- Revision:
- 7:467e350d1a10
- Parent:
- 6:41a4ad385daa
- Child:
- 11:b571de4666c9
File content as of revision 7:467e350d1a10:
#include "globals.h" DigitalOut led1 (PA_4); // not present on Maple Mini DigitalOut led2 (PA_5); // not present on Maple Mini DigitalOut led3 (PA_6); // not present on Maple Mini DigitalOut led4 (PA_7); // not present on Maple Mini // We use can on mbed pins 29(CAN_TXD) and 30(CAN_RXD). //CAN can2(p30, p29); // for LPC1768 CAN can2(PA_11, PA_12); // for Blue Pill 64K Maple Mini // OR can on mbed pins 10(CAN_TXD) and 9(CAN_RXD). //CAN can1(p9, p10); CANMessage can_MsgRx; int got_alt = false; unsigned char alt[3]; //Serial pc(USBTX, USBRX); -- for LPC1768 Serial pc(PA_2, PA_3); // for Maple Mini