OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [stdalone/] [dskchk/] [main.c] - Diff between revs 18 and 38

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 18 Rev 38
Line 136... Line 136...
  /* 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 191... Line 191...
}
}
 
 
 
 
void initClock(void) {
void initClock(void) {
  setISR(14, clockISR);
  setISR(14, clockISR);
  *TIMER_DIV = 10;
  *TIMER_DIV = 500000;
  *TIMER_CTRL = 2;
  *TIMER_CTRL = 2;
  setMask(1 << 14);
  setMask(1 << 14);
  enable();
  enable();
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.