X-CUBE-SPN1-20150128 example source code for one motor compiled under mbed. Tested OK on Nucleo F401. l6474.cpp is modified from original with defines in l6474_target_config.h to select the original behaviour (motor de-energised when halted), or new mode to continue powering with a (reduced) current in the coils (braking/position hold capability). On F401 avoid using mbed's InterruptIn on pins 10-15 (any port). Beware of other conflicts! L0 & F0 are included but untested.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
gregeric
Date:
Fri Sep 18 12:05:07 2015 +0000
Parent:
2:d6f513e1313b
Child:
4:8f6fbb88c753
Commit message:
Updated mbed to latest revision

Changed in this revision

mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/mbed.bld	Fri Sep 18 09:55:03 2015 +0000
+++ b/mbed.bld	Fri Sep 18 12:05:07 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/7cff1c4259d7
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/4f6c30876dfa
\ No newline at end of file