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 use_can_stm
Revision 0:2d1674c40691, committed 2022-03-21
- Comitter:
- nanami773
- Date:
- Mon Mar 21 08:40:13 2022 +0000
- Commit message:
- canstm?;
Changed in this revision
--- /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