forked from Imagelibrary/rtems
2007-07-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* clock/clock.c, console/console.c: Add clock HW initialization missed in earlier conversion.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2007-07-06 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
|
* clock/clock.c, console/console.c: Add clock HW initialization missed
|
||||||
|
in earlier conversion.
|
||||||
|
|
||||||
2007-07-06 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
|
2007-07-06 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
|
||||||
|
|
||||||
* irq_init.c, Makefile.am: adapted to shared exception code
|
* irq_init.c, Makefile.am: adapted to shared exception code
|
||||||
|
|||||||
@@ -341,7 +341,10 @@ int BSP_connect_clock_handler (uint32_t gpt_no)
|
|||||||
/* This driver does this in clockOn called at connection time */
|
/* This driver does this in clockOn called at connection time */
|
||||||
#define Clock_driver_support_initialize_hardware() \
|
#define Clock_driver_support_initialize_hardware() \
|
||||||
do { \
|
do { \
|
||||||
; \
|
counter_value = rtems_configuration_get_microseconds_per_tick() * \
|
||||||
|
rtems_cpu_configuration_get_clicks_per_usec(); \
|
||||||
|
mpc5200_init_gpt(GPT); \
|
||||||
|
mpc5200_set_gpt_count(counter_value, GPT); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define Clock_driver_nanoseconds_since_last_tick \
|
#define Clock_driver_nanoseconds_since_last_tick \
|
||||||
|
|||||||
@@ -651,12 +651,17 @@ int mpc5200_uart_write(int minor, const char *buf, int len)
|
|||||||
* Print functions prototyped in bspIo.h
|
* Print functions prototyped in bspIo.h
|
||||||
*/
|
*/
|
||||||
static void A_BSP_output_char( char c )
|
static void A_BSP_output_char( char c )
|
||||||
{
|
{
|
||||||
char cr = '\r';
|
char cr = '\r';
|
||||||
|
|
||||||
|
/*
|
||||||
if(console_initialized == TRUE)
|
* If we are using U-Boot, then the console is already initialized
|
||||||
{
|
* and we can just poll bytes out at any time.
|
||||||
|
*/
|
||||||
|
#if !defined(HAS_UBOOT)
|
||||||
|
if (console_initialized == FALSE )
|
||||||
|
return
|
||||||
|
#endif
|
||||||
|
|
||||||
#define PRINTK_WRITE mpc5200_uart_pollWrite
|
#define PRINTK_WRITE mpc5200_uart_pollWrite
|
||||||
|
|
||||||
@@ -664,10 +669,7 @@ static void A_BSP_output_char( char c )
|
|||||||
|
|
||||||
if( c == '\n' )
|
if( c == '\n' )
|
||||||
PRINTK_WRITE( PRINTK_MINOR, &cr, 1 );
|
PRINTK_WRITE( PRINTK_MINOR, &cr, 1 );
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
***************
|
***************
|
||||||
|
|||||||
Reference in New Issue
Block a user