Use uint32_t instead of rtems_unsigned32/unsigned32.

This commit is contained in:
Ralf Corsepius
2006-12-12 10:24:16 +00:00
parent b8e42a7699
commit 1408ea8de8
6 changed files with 14 additions and 14 deletions

View File

@@ -108,7 +108,7 @@ rtems_isr console_isr_a(
if ( LEON_REG.UART_Status_1 & LEON_REG_UART_STATUS_THE ) { if ( LEON_REG.UART_Status_1 & LEON_REG_UART_STATUS_THE ) {
if ( !Ring_buffer_Is_empty( &TX_Buffer[ 0 ] ) ) { if ( !Ring_buffer_Is_empty( &TX_Buffer[ 0 ] ) ) {
Ring_buffer_Remove_character( &TX_Buffer[ 0 ], ch ); Ring_buffer_Remove_character( &TX_Buffer[ 0 ], ch );
LEON_REG.UART_Channel_1 = (unsigned32) ch; LEON_REG.UART_Channel_1 = (uint32_t) ch;
} else } else
Is_TX_active[ 0 ] = FALSE; Is_TX_active[ 0 ] = FALSE;
} }
@@ -148,7 +148,7 @@ rtems_isr console_isr_b(
if ( LEON_REG.UART_Status_2 & LEON_REG_UART_STATUS_THE ) { if ( LEON_REG.UART_Status_2 & LEON_REG_UART_STATUS_THE ) {
if ( !Ring_buffer_Is_empty( &TX_Buffer[ 1 ] ) ) { if ( !Ring_buffer_Is_empty( &TX_Buffer[ 1 ] ) ) {
Ring_buffer_Remove_character( &TX_Buffer[ 1 ], ch ); Ring_buffer_Remove_character( &TX_Buffer[ 1 ], ch );
LEON_REG.UART_Channel_2 = (unsigned32) ch; LEON_REG.UART_Channel_2 = (uint32_t) ch;
} else } else
Is_TX_active[ 1 ] = FALSE; Is_TX_active[ 1 ] = FALSE;
} }
@@ -171,8 +171,8 @@ rtems_isr console_isr_b(
void console_exit() void console_exit()
{ {
rtems_unsigned32 port; uint32_t port;
rtems_unsigned32 ch; uint32_t ch;
/* /*
* Although the interrupts for the UART are unmasked, the PIL is set to * Although the interrupts for the UART are unmasked, the PIL is set to
@@ -225,7 +225,7 @@ void console_exit()
*/ */
#ifdef RDB_BREAK_IN #ifdef RDB_BREAK_IN
extern unsigned32 trap_table[]; extern uint32_t trap_table[];
#endif #endif
void console_initialize_interrupts( void ) void console_initialize_interrupts( void )

View File

@@ -55,7 +55,7 @@ void Timer_initialize()
int Read_timer() int Read_timer()
{ {
rtems_unsigned32 total; uint32_t total;
total = LEON_REG.Timer_Counter_2; total = LEON_REG.Timer_Counter_2;

View File

@@ -89,7 +89,7 @@ void DEBUG_puts(
) )
{ {
char *s; char *s;
/* unsigned32 old_level; */ /* uint32_t old_level; */
/* LEON_Disable_interrupt( LEON_INTERRUPT_UART_1_RX_TX, old_level ); */ /* LEON_Disable_interrupt( LEON_INTERRUPT_UART_1_RX_TX, old_level ); */
sparc_disable_interrupts(); sparc_disable_interrupts();

View File

@@ -53,7 +53,7 @@ extern rtems_mpci_entry Shm_Return_packet(
); );
extern rtems_mpci_entry Shm_Send_packet( extern rtems_mpci_entry Shm_Send_packet(
rtems_unsigned32, uint32_t,
rtems_packet_prefix * rtems_packet_prefix *
); );
@@ -80,7 +80,7 @@ extern rtems_mpci_entry Shm_Send_packet(
shm_config_table BSP_shm_cfgtbl; shm_config_table BSP_shm_cfgtbl;
void Shm_Get_configuration( void Shm_Get_configuration(
rtems_unsigned32 localnode, uint32_t localnode,
shm_config_table **shmcfg shm_config_table **shmcfg
) )
{ {

View File

@@ -55,9 +55,9 @@ void Shm_Lock(
Shm_Locked_queue_Control *lq_cb Shm_Locked_queue_Control *lq_cb
) )
{ {
rtems_unsigned32 isr_level; uint32_t isr_level;
rtems_unsigned32 *lockptr = (rtems_unsigned32 *) &lq_cb->lock; uint32_t *lockptr = (uint32_t *) &lq_cb->lock;
rtems_unsigned32 lock_value; uint32_t lock_value;
lock_value = SHM_LOCK_VALUE; lock_value = SHM_LOCK_VALUE;
rtems_interrupt_disable( isr_level ); rtems_interrupt_disable( isr_level );
@@ -88,7 +88,7 @@ void Shm_Unlock(
Shm_Locked_queue_Control *lq_cb Shm_Locked_queue_Control *lq_cb
) )
{ {
rtems_unsigned32 isr_level; uint32_t isr_level;
lq_cb->lock = SHM_UNLOCK_VALUE; lq_cb->lock = SHM_UNLOCK_VALUE;
isr_level = Shm_isrstat; isr_level = Shm_isrstat;

View File

@@ -58,7 +58,7 @@ void Timer_initialize()
int Read_timer() int Read_timer()
{ {
rtems_unsigned32 total; uint32_t total;
if (LEON3_Timer_Regs) { if (LEON3_Timer_Regs) {
total = LEON3_Timer_Regs->timer[LEON3_TIMER_INDEX].value; total = LEON3_Timer_Regs->timer[LEON3_TIMER_INDEX].value;