Signed-off-by: Keith Packard <keithp@keithp.com>
put_string(char *s)
{
__xdata char c;
- while (c = *s++)
+ while ((c = *s++))
putchar(c);
}
return 1;
}
+#if 0
static void
eol(void)
{
while (ao_cmd_lex_c != '\n')
ao_cmd_lex();
}
+#endif
static void
echo(void)
{
printf("manufacturer %s\n", ao_manufacturer);
printf("product %s\n", ao_product);
- printf("serial-number %u\n", ao_romconfig.serial_number);
+// printf("serial-number %u\n", ao_romconfig.serial_number);
printf("software-version %s\n", ao_version);
}
case ao_cmd_syntax_error:
puts("Syntax error");
ao_cmd_status = 0;
+ default:
break;
}
}
// ao_debug_init();
ao_led_init(LEDS_AVAILABLE);
ao_timer_init();
+ ao_cmd_init();
- ao_add_task(&demo_task, ao_demo, "demo");
+// ao_add_task(&demo_task, ao_demo, "demo");
/* Turn on the LED until the system is stable */
ao_start_scheduler();
return 0;
*/
#include "ao.h"
-#include PRODUCT_DEFS
+#include "ao_product.h"
/* Defines which mark this particular AltOS product */
# Common AltOS sources
#
ALTOS_SRC = \
+ ao_cmd.c \
ao_mutex.c \
ao_panic.c \
+ ao_product.c \
ao_serial_avr.c \
ao_stdio.c \
ao_task.c \
uninstall:
-$(OBJ): ao.h
\ No newline at end of file
+$(OBJ): ao.h ao_product.h
\ No newline at end of file