Senior design censored code to run freescale motor with X-NUCLEO-IM07M1. REFACTORED
Fork of Blue_Board_Test_2 by
Diff: SixStep_Lib.cpp
- Revision:
- 6:f9aca07dbdb4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SixStep_Lib.cpp Thu Apr 07 23:27:18 2016 +0000 @@ -0,0 +1,15 @@ +#include "SixStep_Lib.h" + +void SixStep::Enable_CH1_CH2_Disable_CH3(DigitalOut& ch1, DigitalOut& ch2, DigitalOut& ch3) +{ + ch1 = 1; + ch2 = 1; + ch3 = 0; +} + +void SixStep::Disable_CH1_CH2_CH3(DigitalOut& ch1, DigitalOut& ch2, DigitalOut& ch3) +{ + ch1 = 0; + ch2 = 0; + ch3 = 0; +}