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
00001 #include "globals.h" 00002 00003 00004 00005 DigitalOut led1 (PB_1); // is present 00006 DigitalOut led2 (PA_5); // not present on Maple Mini 00007 DigitalOut led3 (PA_6); // not present on Maple Mini 00008 DigitalOut led4 (PA_7); // not present on Maple Mini 00009 00010 // We use can on mbed pins 29(CAN_TXD) and 30(CAN_RXD). 00011 //CAN can2(p30, p29); // for LPC1768 00012 CAN can2(PA_11, PA_12); // for Blue Pill 64K Maple Mini 00013 // OR can on mbed pins 10(CAN_TXD) and 9(CAN_RXD). 00014 //CAN can1(p9, p10); 00015 CANMessage can_MsgRx; 00016 00017 int got_alt = false; 00018 00019 unsigned char alt[3]; 00020 00021 //Serial pc(USBTX, USBRX); -- for LPC1768 00022 Serial pc(PA_2, PA_3); // for Maple Mini
Generated on Fri Jul 15 2022 20:08:26 by
1.7.2