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.
History
Ensure bridge is disabled before resetting the L6474.
2015-10-13, by gregeric [Tue, 13 Oct 2015 10:46:01 +0000] rev 6
Ensure bridge is disabled before resetting the L6474.
Fix other platform re main.h rename to ihm01a1.h
2015-09-18, by gregeric [Fri, 18 Sep 2015 12:10:45 +0000] rev 5
Fix other platform re main.h rename to ihm01a1.h
Fixed renaming of main.h to ihm01a1.h
2015-09-18, by gregeric [Fri, 18 Sep 2015 12:08:48 +0000] rev 4
Fixed renaming of main.h to ihm01a1.h
Updated mbed to latest revision
2015-09-18, by gregeric [Fri, 18 Sep 2015 12:05:07 +0000] rev 3
Updated mbed to latest revision
Added warnings re untested platforms.
2015-09-18, by gregeric [Fri, 18 Sep 2015 09:55:03 +0000] rev 2
Added warnings re untested platforms.
Moved & renamed main.h to ihm01a1.h
2015-09-18, by gregeric [Fri, 18 Sep 2015 08:44:48 +0000] rev 1
Moved & renamed main.h to ihm01a1.h
X-CUBE-SPN1-20150128 example source code for one motor compiled under mbed. Tested OK on Nucleo F401. On F401 avoid using mbed's InterruptIn on pins 10-15 (any port). Beware of other conflicts!; ; L0 & F0 are included but untested.
2015-09-05, by gregeric [Sat, 05 Sep 2015 20:18:14 +0000] rev 0
X-CUBE-SPN1-20150128 example source code for one motor compiled under mbed. Tested OK on Nucleo F401. On F401 avoid using mbed's InterruptIn on pins 10-15 (any port). Beware of other conflicts!; ; L0 & F0 are included but untested.