AMX Target Guide Computer Accessories User Manual


 
40
K
A
DAK
AMX 68000 Target Guide
The clock initialization procedure for this custom clock driver could be coded in C as
follows. Insert procedure
clockinit into your list of Restart Procedures provided in
your System Configuration Module at the point at which you wish the clock to be
enabled during the launch.
void CJ_CCPP clockroot(void); /* External clock ISP root */
void CJ_CCPP clockinit(void)
{
/* Inhibit clock interrupts */
/* Configure clock for correct frequency */
/* Install pointer to clock ISP root into AMX Vector Table */
cjksivtwr(25, (CJ_ISPPROC)clockroot);
/* Start clock and enable clock interrupts */
}