Nanami Takahashi / Mbed 2 deprecated can

Dependencies:   mbed use_can_stm

Files at this revision

API Documentation at this revision

Comitter:
nanami773
Date:
Mon Mar 21 08:40:13 2022 +0000
Commit message:
canstm?;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
use_can_stm.lib Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 21 08:40:13 2022 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+//#include "use_can_stm.h"
+//#include "use_can_stm.cpp"
+CAN can(p30,p29);
+TIcker controlCycle;
+float a;
+
+int main()
+{
+            can.frequency(500000);
+            controlCycle.attach(&mainLoop,0.01f);
+            
+        while(1) {
+            motordriverTransmitMessage(&can,MD_0_MCU,md_can_flame::SEND_CONTROL_DUTY,0.8f);
+            Ticker controlCycle;
+        }
+                
+        void mainLoop() {
+            motordriverTransmitMessage(&can,MD_0_MCU,md_can_flame::SEND_CONTROL_DUTY,0.8f);
+        }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Mar 21 08:40:13 2022 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/use_can_stm.lib	Mon Mar 21 08:40:13 2022 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/takenowa/code/use_can_stm/#7512f87ede67