Line 162... |
Line 162... |
/* 09 */ "unknown interrupt",
|
/* 09 */ "unknown interrupt",
|
/* 10 */ "unknown interrupt",
|
/* 10 */ "unknown interrupt",
|
/* 11 */ "unknown interrupt",
|
/* 11 */ "unknown interrupt",
|
/* 12 */ "unknown interrupt",
|
/* 12 */ "unknown interrupt",
|
/* 13 */ "unknown interrupt",
|
/* 13 */ "unknown interrupt",
|
/* 14 */ "timer interrupt",
|
/* 14 */ "timer 0 interrupt",
|
/* 15 */ "unknown interrupt",
|
/* 15 */ "timer 1 interrupt",
|
/* 16 */ "bus timeout exception",
|
/* 16 */ "bus timeout exception",
|
/* 17 */ "illegal instruction exception",
|
/* 17 */ "illegal instruction exception",
|
/* 18 */ "privileged instruction exception",
|
/* 18 */ "privileged instruction exception",
|
/* 19 */ "divide instruction exception",
|
/* 19 */ "divide instruction exception",
|
/* 20 */ "trap instruction exception",
|
/* 20 */ "trap instruction exception",
|
Line 290... |
Line 290... |
|
|
void initTimer(void) {
|
void initTimer(void) {
|
unsigned int *timerBase;
|
unsigned int *timerBase;
|
|
|
timerBase = (unsigned int *) 0xF0000000;
|
timerBase = (unsigned int *) 0xF0000000;
|
*(timerBase + 1) = 1000;
|
*(timerBase + 1) = 50000000;
|
*timerBase = 2;
|
*timerBase = 2;
|
orMask(1 << 14);
|
orMask(1 << 14);
|
}
|
}
|
|
|
|
|