void cmd_sd_dir(uint8_t argc, char **argv);
#endif
+#ifdef CFG_PWM
void cmd_pwm(uint8_t argc, char **argv);
+#endif
#define CMD_NOPARAMS "This command has no parameters"
#ifdef CFG_SDCARD
{ "d", 0, 1, 0, cmd_sd_dir , "Dir (SD Card)" , "'d [<path>]'" },
#endif
- { "pwm", 0, 2, 0, cmd_pwm, "PWM Control", "'pwm [<duty_cycle>] [<frequency>]'" },
-
-}
+ #ifdef CFG_PWM
+ { "M", 2, 2, 0, cmd_pwm , "PWM Control" , "'M [<dutycycle(%)>] [<frequency(ticks)>]'" },
+ #endif
};
#endif
\ No newline at end of file