mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-25 08:59:32 +08:00
uC5282/console/console.c: Add braces and correct indentation to fix warnings
This commit is contained in:
@@ -110,11 +110,12 @@ IntUartSet(int minor, int baud, int databits, int parity, int stopbits, int hwfl
|
||||
info->stopbits = stopbits;
|
||||
info->hwflow = hwflow;
|
||||
|
||||
clock_speed = bsp_get_CPU_clock_speed();
|
||||
/* determine the baud divisor value */
|
||||
divisor = (clock_speed / ( 32 * baud ));
|
||||
if ( divisor < 2 )
|
||||
divisor = 2;
|
||||
clock_speed = bsp_get_CPU_clock_speed();
|
||||
/* determine the baud divisor value */
|
||||
divisor = (clock_speed / ( 32 * baud ));
|
||||
if ( divisor < 2 ) {
|
||||
divisor = 2;
|
||||
}
|
||||
|
||||
/* check to see if doing hardware flow control */
|
||||
if ( hwflow )
|
||||
|
||||
Reference in New Issue
Block a user