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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [stdalone/] [twotasks-2/] [os/] [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 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);
}
}
 
 
 
 

powered by: WebSVN 2.1.0

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