forked from Imagelibrary/rtems
Eliminate rtems_boolean.
This commit is contained in:
@@ -351,9 +351,9 @@ mcfuart_poll_read(mcfuart *uart)
|
|||||||
{
|
{
|
||||||
uint8_t usr;
|
uint8_t usr;
|
||||||
int ch;
|
int ch;
|
||||||
if (uart->parerr_mark_flag == 1)
|
if (uart->parerr_mark_flag == true)
|
||||||
{
|
{
|
||||||
uart->parerr_mark_flag = 0;
|
uart->parerr_mark_flag = false;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
usr = *MCF5206E_USR(MBAR,uart->chn);
|
usr = *MCF5206E_USR(MBAR,uart->chn);
|
||||||
@@ -365,7 +365,7 @@ mcfuart_poll_read(mcfuart *uart)
|
|||||||
ch = *MCF5206E_URB(MBAR,uart->chn); /* Clear error bits */
|
ch = *MCF5206E_URB(MBAR,uart->chn); /* Clear error bits */
|
||||||
if (uart->c_iflag & PARMRK)
|
if (uart->c_iflag & PARMRK)
|
||||||
{
|
{
|
||||||
uart->parerr_mark_flag = 1;
|
uart->parerr_mark_flag = true;
|
||||||
ch = 0xff;
|
ch = 0xff;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -43,8 +43,8 @@ typedef struct mcfuart {
|
|||||||
volatile uint32_t tx_ptr; /* Index of next char to transmit*/
|
volatile uint32_t tx_ptr; /* Index of next char to transmit*/
|
||||||
rtems_isr_entry old_handler; /* Saved interrupt handler */
|
rtems_isr_entry old_handler; /* Saved interrupt handler */
|
||||||
|
|
||||||
tcflag_t c_iflag; /* termios input mode flags */
|
tcflag_t c_iflag; /* termios input mode flags */
|
||||||
rtems_boolean parerr_mark_flag; /* Parity error processing
|
bool parerr_mark_flag; /* Parity error processing
|
||||||
state */
|
state */
|
||||||
} mcfuart;
|
} mcfuart;
|
||||||
|
|
||||||
|
|||||||
@@ -452,7 +452,7 @@ static rtems_status_code mpc83xx_i2c_send_addr
|
|||||||
\*=========================================================================*/
|
\*=========================================================================*/
|
||||||
{
|
{
|
||||||
mpc83xx_i2c_softc_t *softc_ptr = &(((mpc83xx_i2c_desc_t *)(bh))->softc);
|
mpc83xx_i2c_softc_t *softc_ptr = &(((mpc83xx_i2c_desc_t *)(bh))->softc);
|
||||||
rtems_boolean long_addr = FALSE;
|
bool long_addr = false;
|
||||||
uint8_t addr_byte;
|
uint8_t addr_byte;
|
||||||
rtems_status_code rc;
|
rtems_status_code rc;
|
||||||
|
|
||||||
@@ -464,7 +464,7 @@ static rtems_status_code mpc83xx_i2c_send_addr
|
|||||||
* determine, whether short or long address is needed, determine rd/wr
|
* determine, whether short or long address is needed, determine rd/wr
|
||||||
*/
|
*/
|
||||||
if (addr > 0x7f) {
|
if (addr > 0x7f) {
|
||||||
long_addr = TRUE;
|
long_addr = true;
|
||||||
addr_byte = (0xf0
|
addr_byte = (0xf0
|
||||||
| ((addr >> 7) & 0x06)
|
| ((addr >> 7) & 0x06)
|
||||||
| ((rw) ? 1 : 0));
|
| ((rw) ? 1 : 0));
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ void clockOn(void* unused)
|
|||||||
unsigned desiredLevel;
|
unsigned desiredLevel;
|
||||||
uint32_t pit_value;
|
uint32_t pit_value;
|
||||||
uint32_t mf_value;
|
uint32_t mf_value;
|
||||||
rtems_boolean force_prescaler = FALSE;
|
bool force_prescaler = false;
|
||||||
extern uint32_t bsp_clicks_per_usec;
|
extern uint32_t bsp_clicks_per_usec;
|
||||||
extern uint32_t bsp_clock_speed;
|
extern uint32_t bsp_clock_speed;
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ void clockOn(void* unused)
|
|||||||
* rtems_configuration_get_microseconds_per_tick()
|
* rtems_configuration_get_microseconds_per_tick()
|
||||||
/ 1000);
|
/ 1000);
|
||||||
m8xx.sccr |= (1<<23);
|
m8xx.sccr |= (1<<23);
|
||||||
force_prescaler = TRUE;
|
force_prescaler = true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
pit_value = (rtems_configuration_get_microseconds_per_tick() *
|
pit_value = (rtems_configuration_get_microseconds_per_tick() *
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
|
|
||||||
volatile uint32_t Clock_driver_ticks;
|
volatile uint32_t Clock_driver_ticks;
|
||||||
static uint32_t pit_value, tick_time;
|
static uint32_t pit_value, tick_time;
|
||||||
static rtems_boolean auto_restart;
|
static bool auto_restart;
|
||||||
|
|
||||||
void Clock_exit( void );
|
void Clock_exit( void );
|
||||||
|
|
||||||
@@ -243,13 +243,13 @@ void ClockOn(
|
|||||||
|
|
||||||
if ((pvr & 0xff00) == 0x0000) /* 403GA */
|
if ((pvr & 0xff00) == 0x0000) /* 403GA */
|
||||||
#if 0 /* FIXME: in which processor versions will "autoload" work properly? */
|
#if 0 /* FIXME: in which processor versions will "autoload" work properly? */
|
||||||
auto_restart = (pvr & 0x00f0) > 0x0000 ? 1 : 0;
|
auto_restart = (pvr & 0x00f0) > 0x0000 ? true : false;
|
||||||
#else
|
#else
|
||||||
/* no known chip version supports auto restart of timer... */
|
/* no known chip version supports auto restart of timer... */
|
||||||
auto_restart = 0;
|
auto_restart = false;
|
||||||
#endif
|
#endif
|
||||||
else if ((pvr & 0xff00) == 0x0100) /* 403GB */
|
else if ((pvr & 0xff00) == 0x0100) /* 403GB */
|
||||||
auto_restart = 1;
|
auto_restart = true;
|
||||||
|
|
||||||
#else /* ppc405 */
|
#else /* ppc405 */
|
||||||
asm volatile ("mfdcr %0, 0x0b2" : "=r" (iocr)); /*405GP CPC0_CR1 */
|
asm volatile ("mfdcr %0, 0x0b2" : "=r" (iocr)); /*405GP CPC0_CR1 */
|
||||||
@@ -265,7 +265,7 @@ void ClockOn(
|
|||||||
* Enable auto restart
|
* Enable auto restart
|
||||||
*/
|
*/
|
||||||
|
|
||||||
auto_restart=1;
|
auto_restart=true;
|
||||||
|
|
||||||
#endif /* ppc405 */
|
#endif /* ppc405 */
|
||||||
pit_value = rtems_configuration_get_microseconds_per_tick() *
|
pit_value = rtems_configuration_get_microseconds_per_tick() *
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ rtems_device_driver console_initialize(
|
|||||||
* Return values:
|
* Return values:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
rtems_boolean is_character_ready(
|
bool is_character_ready(
|
||||||
char *ch
|
char *ch
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -202,7 +202,7 @@ rtems_boolean is_character_ready(
|
|||||||
if ((status = port->SPLS) & LSRDataReady)
|
if ((status = port->SPLS) & LSRDataReady)
|
||||||
{
|
{
|
||||||
*ch = port->SPRB;
|
*ch = port->SPRB;
|
||||||
return(TRUE);
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Clean any dodgy status */
|
/* Clean any dodgy status */
|
||||||
@@ -213,7 +213,7 @@ rtems_boolean is_character_ready(
|
|||||||
LSRBreakInterrupt);
|
LSRBreakInterrupt);
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* inbyte
|
/* inbyte
|
||||||
|
|||||||
Reference in New Issue
Block a user