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
Diff: main.cpp
- Revision:
- 2:b59bb999cffd
- Parent:
- 1:fc19811d6c3e
- Child:
- 3:28f7d0d3d199
--- a/main.cpp Sun Jul 22 16:24:44 2018 +0000
+++ b/main.cpp Wed Aug 08 15:12:38 2018 +0000
@@ -1,6 +1,6 @@
#include "mbed.h"
#include "stm32f103c8t6.h"
-#define id 3
+#define iden 3
CAN can (PA_11, PA_12);
Ticker ticker;
@@ -8,7 +8,7 @@
char i = 0;
void transmit(){
if (i++ > 10) i = 0;
- can.write(CANMessage(id, &i, 1, CANData, CANStandard));
+ can.write(CANMessage(iden, &i, 1, CANData, CANStandard));
}
int main() {