diff --git a/litex/soc/software/demo/main.c b/litex/soc/software/demo/main.c index 89f369cc5..aaca31174 100644 --- a/litex/soc/software/demo/main.c +++ b/litex/soc/software/demo/main.c @@ -83,7 +83,9 @@ static void help(void) puts("Available commands:"); puts("help - Show this command"); puts("reboot - Reboot CPU"); +#ifdef CSR_LEDS_BASE puts("led - Led demo"); +#endif puts("donut - Spinning Donut demo"); } @@ -96,6 +98,7 @@ static void reboot_cmd(void) ctrl_reset_write(1); } +#ifdef CSR_LEDS_BASE static void led_cmd(void) { int i; @@ -125,6 +128,7 @@ static void led_cmd(void) busy_wait(200); } } +#endif extern void donut(void); @@ -150,8 +154,10 @@ static void console_service(void) help(); else if(strcmp(token, "reboot") == 0) reboot_cmd(); +#ifdef CSR_LEDS_BASE else if(strcmp(token, "led") == 0) led_cmd(); +#endif else if(strcmp(token, "donut") == 0) donut_cmd(); prompt();