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.
Diff: main.cpp
- Revision:
- 3:bc163d555ddc
- Parent:
- 1:3644b10bce2f
--- a/main.cpp Thu Jun 09 06:29:08 2016 +0000
+++ b/main.cpp Sat Feb 04 09:49:57 2017 +0000
@@ -11,20 +11,14 @@
USBSerial virtualUART(VID, PID, VERSION, false);
USBSLCAN slcan(virtualUART, can1);
-/*
-Serial hwUART(USBTX, USBRX);
-SerialSLCAN slcan(hwUART, can1);
-*/
+//Serial hwUART(USBTX, USBRX);
+//SerialSLCAN slcan(hwUART, can1);
Timer timer;
DigitalOut led(LED1);
DigitalOut led2(LED2);
int main() {
- can1.mode(CAN::Reset);
- //can1.frequency(500000);
- //can1.mode(CAN::Silent);
-
virtualUART.connect(false);
//hwUART.baud(115200);
@@ -42,7 +36,6 @@
virtualUART.connect(false);
}
-
if (active) {
timer.reset();
timer.start();