Changeset 0bbd74de in rtems


Ignore:
Timestamp:
Sep 5, 2008, 6:23:37 AM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
f7276df0
Parents:
4fef24e
Message:

Convert to "bool".

Location:
c/src/lib/libbsp/i386
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/timer/timer.c

    r4fef24e r0bbd74de  
    232232i386_timer_initialize(void)
    233233{
    234   static rtems_boolean First = TRUE;
     234  static bool First = true;
    235235
    236236  if (First)
    237237  {
    238     First = FALSE;
     238    First = false;
    239239
    240240    atexit(Timer_exit); /* Try not to hose the system at exit. */
     
    330330+--------------------------------------------------------------------------*/
    331331void
    332 benchmark_timer_disable_subtracting_average_overhead(rtems_boolean find_flag)
     332benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
    333333{
    334334  benchmark_timer_find_average_overhead = find_flag;
  • c/src/lib/libbsp/i386/ts_386ex/timer/timer.c

    r4fef24e r0bbd74de  
    2929
    3030volatile uint32_t          Ttimer_val;  /* Updated from ISR!!! */
    31 rtems_boolean benchmark_timer_find_average_overhead;
     31bool benchmark_timer_find_average_overhead;
    3232
    3333extern void timerisr(void);
     
    100100{
    101101
    102   static rtems_boolean First = TRUE;
     102  static bool First = true;
    103103
    104104  if (First)
    105105  {
    106     First = FALSE;
     106    First = false;
    107107
    108108    if (!i386_get_current_idt_entry (&old_raw_irq_data)) {
     
    156156  total = Ttimer_val * US_PER_ISR + (US_PER_ISR - clicks);
    157157
    158   if ( benchmark_timer_find_average_overhead == 1 )
     158  if ( benchmark_timer_find_average_overhead == true )
    159159    return total;          /* in one microsecond units */
    160160  else if ( total < LEAST_VALID )
     
    165165
    166166void benchmark_timer_disable_subtracting_average_overhead(
    167   rtems_boolean find_flag
     167  bool find_flag
    168168)
    169169{
Note: See TracChangeset for help on using the changeset viewer.