4 #include "libpropeller/vnh2sp30/vnh2sp30.h" 7 #include "libpropeller/pwm32/pwm32.h" 24 static void setUp(
void) {
31 waitcnt(CLKFREQ / 10 + CNT);
37 sut->
Init(pwm2, libpropeller::vnh2sp30::X, pwmPin, inApin, inBpin);
45 static void tearDown(
void) {
58 static void test_Nothing(
void) {
59 for (
int i = 0; i <= 90; i++) {
60 sut->
Set(libpropeller::vnh2sp30::FORWARD, i);
61 waitcnt(CLKFREQ / 10 + CNT);
66 static void test_Nothing2(
void) {
67 sut->
Set(libpropeller::vnh2sp30::FORWARD, 100);
void Init(libpropeller::PWM32 *new_pwm, const int new_pwmPin, const int inApin, const int inBpin)
void Set(const int power)