2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>

* clock/clock.c, include/bsp.h, startup/bspstart.c, timer/timer.c:
	Convert to using c99 fixed size types.
This commit is contained in:
Ralf Corsepius
2004-03-31 04:16:57 +00:00
parent d89f13a4a7
commit d85c279e7e
5 changed files with 17 additions and 12 deletions

View File

@@ -1,3 +1,8 @@
2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
* clock/clock.c, include/bsp.h, startup/bspstart.c, timer/timer.c:
Convert to using c99 fixed size types.
2004-02-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Reflect changes to bsp.am.

View File

@@ -22,7 +22,7 @@
void Clock_exit( void );
rtems_isr Clock_isr( rtems_vector_number vector );
rtems_unsigned32 Clock_counter_register_value;
uint32_t Clock_counter_register_value;
/*
* The interrupt vector number associated with the clock tick device
@@ -36,7 +36,7 @@ rtems_unsigned32 Clock_counter_register_value;
* number of clock ticks since the driver was initialized.
*/
volatile rtems_unsigned32 Clock_driver_ticks;
volatile uint32_t Clock_driver_ticks;
/*
* These are set by clock driver during its init
@@ -128,7 +128,7 @@ void Install_clock(
Clock_counter_register_value = (unsigned int) tmp;
#if 0
Clock_counter_register_value =
(unsigned32) ((float) BSP_Configuration.microseconds_per_tick /
(uint32_t) ((float) BSP_Configuration.microseconds_per_tick /
((float)_ClockFrequency / 2.0)));
#endif
c4x_timer_stop( C4X_TIMER_0 );
@@ -202,7 +202,7 @@ rtems_device_driver Clock_control(
void *pargp
)
{
rtems_unsigned32 isrlevel;
uint32_t isrlevel;
rtems_libio_ioctl_args_t *args = pargp;
if (args == 0)

View File

@@ -108,7 +108,7 @@ extern rtems_configuration_table BSP_Configuration; /* owned by BSP */
extern rtems_cpu_table Cpu_table; /* owned by BSP */
extern rtems_unsigned32 bsp_isr_level;
extern uint32_t bsp_isr_level;
#endif /* ASM */

View File

@@ -35,7 +35,7 @@ rtems_cpu_table Cpu_table;
*/
void bsp_postdriver_hook(void);
void bsp_libc_init( void *, unsigned32, int );
void bsp_libc_init( void *, uint32_t, int );
extern void bsp_spurious_initialize();
/*
@@ -48,7 +48,7 @@ extern void bsp_spurious_initialize();
void bsp_pretasking_hook(void)
{
extern void *_HeapStart;
extern rtems_unsigned32 _HeapSize;
extern uint32_t _HeapSize;
bsp_libc_init(&_HeapStart, (unsigned int) &_HeapSize, 0);
@@ -74,7 +74,7 @@ extern void C4X_BSP_output_char(char c);
void bsp_start( void )
{
extern void *_WorkspaceBase;
extern rtems_unsigned32 _WorkspaceMax;
extern uint32_t _WorkspaceMax;
/*
* Set up our hooks
* Make sure libc_init is done before drivers initialized so that

View File

@@ -22,10 +22,10 @@
#include <bsp.h>
#include <c4xio.h>
rtems_unsigned32 Timer_interrupts;
uint32_t Timer_interrupts;
rtems_boolean Timer_driver_Find_average_overhead;
static unsigned32 start;
static uint32_t start;
void Timer_initialize( void )
{
@@ -65,8 +65,8 @@ void Timer_initialize( void )
int Read_timer( void )
{
rtems_unsigned32 clicks;
rtems_unsigned32 total;
uint32_t clicks;
uint32_t total;
int tmp;
/*