| | Here is the relevant function. Note that it only works for baud rates up to 9600. void set_baud(int rate) /* For an 8 MHz clock */ { if (rate >= 300) poke(BAUD, 0xb0 | log2(9600/rate)); } You'll need regdefines.c (for the address of BAUD) as well as (...) (25 years ago, 24-Jul-99, to lugnet.robotics.handyboard)
|