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

Subversion Repositories aemb

[/] [aemb/] [trunk/] [sw/] [cc/] [corefunc.hh] - Diff between revs 157 and 161

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

Rev 157 Rev 161
Line 1... Line 1...
/* $Id: corefunc.hh,v 1.3 2008-05-01 08:37:37 sybreon Exp $
/* $Id: corefunc.hh,v 1.4 2008-05-11 13:51:50 sybreon Exp $
**
**
** AEMB Function Verification C++ Testbench
** AEMB Function Verification C++ Testbench
** Copyright (C) 2004-2008 Shawn Tan 
** Copyright (C) 2004-2008 Shawn Tan 
**
**
** This file is part of AEMB.
** This file is part of AEMB.
Line 45... Line 45...
*/
*/
 
 
int interruptTest(int timeout)
int interruptTest(int timeout)
{
{
  aembEnableInterrupts();
  aembEnableInterrupts();
  int timer;
  for (int timer=0; (timer < timeout * 100); ++timer)
  for (timer=0; (timer < timeout * 100) && (intr == -1); ++timer); // delay loop
    asm volatile ("nop"); // delay loop
  aembDisableInterrupts();
  aembDisableInterrupts();
  return (intr == 0) ? EXIT_FAILURE : EXIT_SUCCESS;
  return (intr == 0) ? EXIT_FAILURE : EXIT_SUCCESS;
}
}
 
 
 
 
Line 98... Line 98...
 
 
#endif
#endif
 
 
/*
/*
$Log: not supported by cvs2svn $
$Log: not supported by cvs2svn $
 
Revision 1.3  2008/05/01 08:37:37  sybreon
 
Added interrupt capability.
 
 
Revision 1.2  2008/04/28 20:30:24  sybreon
Revision 1.2  2008/04/28 20:30:24  sybreon
Changed to new headers.
Changed to new headers.
 
 
Revision 1.1  2008/04/27 16:04:42  sybreon
Revision 1.1  2008/04/27 16:04:42  sybreon
Minor cosmetic changes.
Minor cosmetic changes.

powered by: WebSVN 2.1.0

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