Changeset 260e0926 in rtems


Ignore:
Timestamp:
Jul 20, 2009, 2:48:14 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
eecd655
Parents:
72ea4cc8
Message:

2009-07-20 Joel Sherrill <joel.sherrill@…>

  • spintrcritical_support/intrcritical.c, spintrcritical_support/intrcritical.h: Change prototype of delay method to indicate when counter is reset. This can be used to count how many iterations we are doing.
Location:
testsuites/sptests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    r72ea4cc8 r260e0926  
     12009-07-20      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * spintrcritical_support/intrcritical.c,
     4        spintrcritical_support/intrcritical.h: Change prototype of delay
     5        method to indicate when counter is reset. This can be used to count
     6        how many iterations we are doing.
     7
    182009-07-19      Joel Sherrill <joel.sherrill@oarcorp.com>
    29
  • testsuites/sptests/spintrcritical_support/intrcritical.c

    r72ea4cc8 r260e0926  
    5858}
    5959
    60 void interrupt_critical_section_test_support_delay(void)
     60bool interrupt_critical_section_test_support_delay(void)
    6161{
    6262  uint32_t          counter;
    6363  Watchdog_Interval initial;
     64  bool              retval;
    6465
    6566  if (TSR) {
     
    7374   *  Count down
    7475   */
    75   if ( !Maximum_current )
     76  if ( !Maximum_current ) {
    7677    Maximum_current = Maximum;
     78    retval = true;
     79  } else
     80    retval = false;
     81
    7782  initial = _Watchdog_Ticks_since_boot;
    7883  for (counter=Maximum_current ; counter ; counter--)
     
    8590   *  Return so the test can try to generate the condition
    8691   */
     92  return retval;
    8793}
  • testsuites/sptests/spintrcritical_support/intrcritical.h

    r72ea4cc8 r260e0926  
    2222);
    2323
    24 void interrupt_critical_section_test_support_delay(void);
     24/**
     25 *  @brief Delay Test Support
     26 *
     27 *  This method delays a varying amount of time each call.
     28 *
     29 *  @return This method returns true each time the delay counter has
     30 *          to be reset.
     31 */
     32bool interrupt_critical_section_test_support_delay(void);
     33
    2534#endif
    2635
Note: See TracChangeset for help on using the changeset viewer.