/* file "Excimer.h" */ /* Header file for Excimer-unique constants */ #include "../../../dinkusr.h" /* To enable Dynamic Functions like printf */ #define BUS_FREQUENCY 66666667 /* Excimer oscillator (U15 on PWB) runs at 66.6666MHz */ double TICS_PER_SEC = BUS_FREQUENCY/4; /* TB ticks/sec at Excimer bus clock. */ int IBUS_MHz = BUS_FREQUENCY/1000000; /* Bus frequency as an integer in MHz. */ /* Excimer does not support . DINK has it's own print routine * called dink_print which supports a limited number of format types (decimal- %d, * hex-%x, string-%s, etc). Redefining printf to point to the dink_print * function, enables standard C programs downloaded to Excimer to print to the * terminal. The address of dink_print is available from the symbol table command * (symtab) in DINK. If the version of DINK on Excimer is updated from the Motorola * website at http:\\www.mot.com\PowerPC\teksupport the address of dink_print must * be updated here. */ /* #define printf dink_print unsigned long (*dink_print)() = (unsigned long (*) ()) 0x6378; */