11 puts("Available commands:\n");
12 puts("ledon: turns LED on.");
13 puts("ledoff: turns LED off.");
20 // At this stage, the rom isn't initalized. We do have polled serial I/O, though.
21 printf("TINIm400 monitor rev 0.0\n");
26 // We're hosed. romInit will have printed an error, nothing more to do.
32 // Switch to interrupt driven serial I/O now that the rom is initialized.
33 Serial0SwitchToBuffered();
40 gets(buffer); // unsafe, of course, should use some equivalent of fgets.
42 if (!strcmp(buffer, "ledon"))
47 else if (!strcmp(buffer, "ledoff"))
54 printf("Unknown command \"%s\".\n", buffer);