Os programas abaixo encontram-se neste arquivo:
Drushell
math.c – standard math functions
random.c – my random-number generator and your random() from lib_hb.c (you'll have to take it out of the latter to get the file to load, due to duplicate definition)
serialio.c — your file, with standard comment headers (see below)
debug_serialio.c – a debugging library for serial I/O which maps serial_putchar() to printf() and serial_getchar() to read from a buffer that you can fill with your own characters (with a debugging init_serial(char s[]) function)
std_header.c – a standard library file comment header that I wrote and used for all the other library files. It's verbose and self- documenting you might want to consider it for the rest of the Handy Board libraries.
conio.c – has high-level serial console I/O for reading and writing of strings and ASCII representations of numbers. The heart of it is an atof() I adapted to IC from the version in the standard library of the Hi-Tec C compiler for CP/M
Outras funções podem ser obtidas no site:
Richard F. Drushel, Ph.D. | “Aplysia californica” is your taxonomic
Department of Biology, Slug Division | nomenclature. / A slug, by any other
Case Western Reserve University | name, is still a slug by nature.
Cleveland, Ohio 44106-7080 U.S.A. | – apologies to Data, “Ode to Spot”
OBS: Para trabalhar com as funções acima, desenvolvidas pelo Professor Drushel você pode consultar o manual do IC modificado por ele. Mas cuidado! Ele usa Macintosh!! Outra sugestão é verificar o próprio código, que é bem comentado…