]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/blobdiff - rpp-test-sw/commands/cmd.c
Generate documentation correctly depending on the selected target
[pes-rpp/rpp-test-sw.git] / rpp-test-sw / commands / cmd.c
index a53e6a2a4462e843b5ba323e71ca18568c763531..5a01bb6f62b4849c2af7c715951debe816f67e1e 100644 (file)
@@ -66,6 +66,7 @@ cmd_des_t const **cmd_list;
 #ifdef TARGET_TMS570_RPP
 int cmd_do_sleep(cmd_io_t *cmd_io, const struct cmd_des *des, char *param[])
 {
+#ifndef DOCGEN
        hal_gpio_pin_set_value(PIN_DSC_CANNSTB, 1);
        hal_gpio_pin_set_value(PIN_DSC_CANEN, 1);
        hal_gpio_pin_set_value(PIN_DSC_LIN2NSLP, 1);
@@ -74,6 +75,7 @@ int cmd_do_sleep(cmd_io_t *cmd_io, const struct cmd_des *des, char *param[])
        hal_gpio_pin_set_value(PIN_DSC_LIN2NSLP, 0);
        hal_gpio_pin_set_value(PIN_DSC_LIN1NSLP, 0);
        hal_gpio_pin_set_value(PIN_DSC_CANNSTB, 0);
+#endif
        return 0;
 }