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

* clock/clockdrv.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:12:24 +00:00
parent 94993c054f
commit d1c60fbf69
5 changed files with 12 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
* clock/clockdrv.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

@@ -23,14 +23,14 @@
#define CLICKS 5000
#define Clock_driver_support_install_isr( _new, _old ) \
do { \
unsigned32 _clicks = CLICKS; \
uint32_t _clicks = CLICKS; \
_old = set_vector( _new, CLOCK_VECTOR, 1 ); \
TX3904_TIMER_WRITE( TX3904_TIMER0_BASE, TX3904_TIMER_CCDR, 0x3 ); \
TX3904_TIMER_WRITE( TX3904_TIMER0_BASE, TX3904_TIMER_CPRA, _clicks ); \
TX3904_TIMER_WRITE( TX3904_TIMER0_BASE, TX3904_TIMER_TISR, 0x00 ); \
TX3904_TIMER_WRITE( TX3904_TIMER0_BASE, TX3904_TIMER_ITMR, 0x8001 ); \
TX3904_TIMER_WRITE( TX3904_TIMER0_BASE, TX3904_TIMER_TCR, 0xC0 ); \
*((volatile unsigned32 *) 0xFFFFC01C) = 0x00000700; \
*((volatile uint32_t*) 0xFFFFC01C) = 0x00000700; \
} while(0)

View File

@@ -66,13 +66,13 @@ extern "C" {
#define Cause_tm27_intr() \
do { \
unsigned32 _clicks = 20; \
uint32_t _clicks = 20; \
TX3904_TIMER_WRITE( TX3904_TIMER0_BASE, TX3904_TIMER_CCDR, 0x3 ); \
TX3904_TIMER_WRITE( TX3904_TIMER0_BASE, TX3904_TIMER_CPRA, _clicks ); \
TX3904_TIMER_WRITE( TX3904_TIMER0_BASE, TX3904_TIMER_TISR, 0x00 ); \
TX3904_TIMER_WRITE( TX3904_TIMER0_BASE, TX3904_TIMER_ITMR, 0x8001 ); \
TX3904_TIMER_WRITE( TX3904_TIMER0_BASE, TX3904_TIMER_TCR, 0xC0 ); \
*((volatile unsigned32 *) 0xFFFFC01C) = 0x00000700; \
*((volatile uint32_t*) 0xFFFFC01C) = 0x00000700; \
} while(0)
#define Clear_tm27_intr() \

View File

@@ -38,7 +38,7 @@ char *rtems_progname;
*/
void bsp_postdriver_hook(void);
void bsp_libc_init( void *, unsigned32, int );
void bsp_libc_init( void *, uint32_t, int );
/*
* Function: bsp_pretasking_hook
@@ -61,7 +61,7 @@ void bsp_pretasking_hook(void)
void *heapStart = &HeapBase;
unsigned long heapSize = (unsigned long)&HeapSize;
bsp_libc_init(heapStart, (unsigned32) heapSize, 0);
bsp_libc_init(heapStart, (uint32_t) heapSize, 0);
#ifdef RTEMS_DEBUG
rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );

View File

@@ -47,7 +47,7 @@ void Timer_initialize()
int Read_timer()
{
rtems_unsigned32 total;
uint32_t total;
total = TX3904_TIMER_READ( TX3904_TIMER1_BASE, TX3904_TIMER_TRR );