mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
bsps/uC5282: Convert tabs to spaces
Most of these files were mixed spaces/tabs, this normalizes it
This commit is contained in:
committed by
Kinsey Moore
parent
272d355c42
commit
d8c5b7fa85
@@ -323,10 +323,11 @@ IntUartInterruptHandler(rtems_vector_number v)
|
||||
MCF5282_UART_UIMR(chan) = info->uimr;
|
||||
|
||||
/* tell upper level that character has been sent */
|
||||
if ( info->ttyp )
|
||||
if ( info->ttyp ) {
|
||||
rtems_termios_dequeue_characters(info->ttyp, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -589,8 +590,9 @@ IntUartPollWrite (int minor, const char *buf, size_t len)
|
||||
while ( len-- )
|
||||
{
|
||||
/* block until we can transmit */
|
||||
while ( (MCF5282_UART_USR(minor) & MCF5282_UART_USR_TXRDY) == 0 )
|
||||
while ( (MCF5282_UART_USR(minor) & MCF5282_UART_USR_TXRDY) == 0 ) {
|
||||
continue;
|
||||
}
|
||||
/* transmit data byte */
|
||||
MCF5282_UART_UTB(minor) = *buf++;
|
||||
}
|
||||
|
||||
@@ -268,8 +268,9 @@ void bsp_start( void )
|
||||
printk("Not set.\n");
|
||||
}
|
||||
|
||||
if ( 0 == clk_speed )
|
||||
if ( 0 == clk_speed ) {
|
||||
clk_speed = BSP_sys_clk_speed;
|
||||
}
|
||||
|
||||
if ( 0 == clk_speed ) {
|
||||
printk("Using some heuristics to determine clock speed...\n");
|
||||
@@ -282,7 +283,8 @@ void bsp_start( void )
|
||||
if ( 0xf8 != byte ) {
|
||||
printk(
|
||||
"FATAL ERROR: Unexpected SYNSR contents "
|
||||
"(0x%02x), can't proceed\n", byte);
|
||||
"(0x%02x), can't proceed\n", byte
|
||||
);
|
||||
bsp_sysReset(0);
|
||||
}
|
||||
mfd = MCF5282_CLOCK_SYNCR;
|
||||
@@ -315,7 +317,8 @@ void bsp_start( void )
|
||||
} else {
|
||||
BSP_sys_clk_speed = clk_speed;
|
||||
printk(
|
||||
"System clock speed: %" PRIu32 "Hz\n", bsp_get_CPU_clock_speed());
|
||||
"System clock speed: %" PRIu32 "Hz\n", bsp_get_CPU_clock_speed()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user