forked from Imagelibrary/rtems
2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* mpc5xx/console-generic/console-generic.c: Moved most of the remaining CPU Table fields to the Configuration Table. This included pretasking_hook, predriver_hook, postdriver_hook, idle_task, do_zero_of_workspace, extra_mpci_receive_server_stack, stack_allocate_hook, and stack_free_hook. As a side-effect of this effort some multiprocessing code was made conditional and some style clean up occurred.
This commit is contained in:
@@ -1,3 +1,13 @@
|
|||||||
|
2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* mpc5xx/console-generic/console-generic.c: Moved most of the remaining
|
||||||
|
CPU Table fields to the Configuration Table. This included
|
||||||
|
pretasking_hook, predriver_hook, postdriver_hook, idle_task,
|
||||||
|
do_zero_of_workspace, extra_mpci_receive_server_stack,
|
||||||
|
stack_allocate_hook, and stack_free_hook. As a side-effect of this
|
||||||
|
effort some multiprocessing code was made conditional and some style
|
||||||
|
clean up occurred.
|
||||||
|
|
||||||
2007-12-03 Joel Sherrill <joel.sherrill@oarcorp.com>
|
2007-12-03 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* shared/include/cpuIdent.h: Correct conditionals and includes.
|
* shared/include/cpuIdent.h: Correct conditionals and includes.
|
||||||
|
|||||||
@@ -220,9 +220,10 @@ m5xx_uart_setAttributes(
|
|||||||
case B460800: baud = 460800; break;
|
case B460800: baud = 460800; break;
|
||||||
}
|
}
|
||||||
if (baud > 0) {
|
if (baud > 0) {
|
||||||
|
extern uint32_t bsp_clock_speed;
|
||||||
sccr0 &= ~QSMCM_SCI_BAUD(-1);
|
sccr0 &= ~QSMCM_SCI_BAUD(-1);
|
||||||
sccr0 |=
|
sccr0 |=
|
||||||
QSMCM_SCI_BAUD((Cpu_table.clock_speed + (16 * baud)) / (32 * baud));
|
QSMCM_SCI_BAUD((bsp_clock_speed + (16 * baud)) / (32 * baud));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Number of data bits -- not available with MPC5xx SCI */
|
/* Number of data bits -- not available with MPC5xx SCI */
|
||||||
|
|||||||
Reference in New Issue
Block a user