Changeset 78b05d3 in rtems


Ignore:
Timestamp:
Sep 2, 2008, 1:49:37 PM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
9459fae
Parents:
81f1ce65
Message:

Eliminate rtems_boolean.

Location:
c/src/lib/libbsp/i386/pc386
Files:
4 edited

Legend:

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

    r81f1ce65 r78b05d3  
    114114+--------------------------------------------------------------------------*/
    115115static inline uint32_t
    116 mtos(uint8_t         m, rtems_boolean leap)
     116mtos(uint8_t         m, bool leap)
    117117{
    118118  static uint16_t         daysMonth[] = { 0, 0, 31,  59,  90, 120, 151, 181,
  • c/src/lib/libbsp/i386/pc386/console/inch.c

    r81f1ce65 r78b05d3  
    9595|                   FALSE otherwise.
    9696+--------------------------------------------------------------------------*/
    97 static rtems_boolean
     97static bool
    9898_IBMPC_scankey(char *outChar)
    9999{
     
    105105  static int extended      = 0;
    106106
    107   *outChar = '\0'; /* default value if we return FALSE */
     107  *outChar = '\0'; /* default value if we return false */
    108108
    109109  /* Read keyboard controller, toggle enable */
     
    116116  inport_byte(KBD_STATUS, inChar);
    117117  if ((inChar & 0x01) == 0)
    118     return FALSE;
     118    return false;
    119119
    120120  /* Read the data.  Handle nonsense with shift, control, etc. */
     
    128128    case 0xe0:
    129129      extended = 2;
    130       return FALSE;
     130      return false;
    131131      break;
    132132
    133133    case 0x38:
    134134      alt_pressed = 1;
    135       return FALSE;
     135      return false;
    136136      break;
    137137    case 0xb8:
    138138      alt_pressed = 0;
    139       return FALSE;
     139      return false;
    140140      break;
    141141
    142142    case 0x1d:
    143143      ctrl_pressed = 1;
    144       return FALSE;
     144      return false;
    145145      break;
    146146    case 0x9d:
    147147      ctrl_pressed = 0;
    148       return FALSE;
     148      return false;
    149149      break;
    150150
    151151    case 0x2a:
    152152      if (extended)
    153         return FALSE;
     153        return false;
    154154    case 0x36:
    155155      shift_pressed = 1;
    156       return FALSE;
     156      return false;
    157157      break;
    158158    case 0xaa:
    159159      if (extended)
    160         return FALSE;
     160        return false;
    161161    case 0xb6:
    162162      shift_pressed = 0;
    163       return FALSE;
     163      return false;
    164164      break;
    165165
    166166    case 0x3a:
    167167      caps_pressed = 1;
    168       return FALSE;
     168      return false;
    169169      break;
    170170    case 0xba:
    171171      caps_pressed = 0;
    172       return FALSE;
     172      return false;
    173173      break;
    174174
     
    184184      if ((inChar & 0x80) || (inChar > 0x39))
    185185      /* High-bit on means key is being released, not pressed */
    186         return FALSE;
     186        return false;
    187187      break;
    188188  } /* switch */
     
    207207  }
    208208
    209   return TRUE;
     209  return true;
    210210} /* _IBMPC_scankey */
    211211
     
    218218|          Returns: TRUE if keyboard buffer not empty, FALSE otherwise.
    219219+--------------------------------------------------------------------------*/
    220 static rtems_boolean
     220static bool
    221221_IBMPC_chrdy(char *c)
    222222{
     
    231231
    232232    kbd_first = (kbd_first + 1) % KBD_BUF_SIZE;
    233     return TRUE;
     233    return true;
    234234  }
    235235  else
    236     return FALSE;
     236    return false;
    237237} /* _IBMPC_chrdy */
    238238
  • c/src/lib/libbsp/i386/pc386/ne2000/ne2000.c

    r81f1ce65 r78b05d3  
    142142
    143143  /* Whether we use byte-transfers with the device. */
    144   rtems_boolean byte_transfers;
     144  bool byte_transfers;
    145145
    146146  /* The number of memory buffers which the transmit daemon has loaded
     
    11751175
    11761176#ifdef NE2000_BYTE_TRANSFERS
    1177   sc->byte_transfers = TRUE;
     1177  sc->byte_transfers = true;
    11781178#else
    1179   sc->byte_transfers = FALSE;
     1179  sc->byte_transfers = false;
    11801180#endif
    11811181
  • c/src/lib/libbsp/i386/pc386/timer/timer.c

    r81f1ce65 r78b05d3  
    122122tsc_timer_initialize(void)
    123123{
    124   static rtems_boolean First = TRUE;
     124  static bool First = true;
    125125
    126126  if (First)
    127127  {
    128     First = FALSE;
     128    First = false;
    129129
    130130    atexit(Timer_exit); /* Try not to hose the system at exit. */
     
    286286benchmark_timer_initialize(void)
    287287{
    288     static rtems_boolean First = TRUE;
     288    static bool First = true;
    289289
    290290    if (First) {
     
    305305            Timer_exit_function = &i386_timer_exit;
    306306        }
    307         First = FALSE;
     307        First = false;
    308308    }
    309309    (*benchmark_timer_initialize_function)();
Note: See TracChangeset for help on using the changeset viewer.