2004-10-21 Ralf Corsepius <ralf_corsepius@rtems.org>

* clock/ckinit.c, include/mcf5272.h, timer/timer.c:
	Use POSIX fixed-size types.
This commit is contained in:
Ralf Corsepius
2004-10-21 13:21:26 +00:00
parent 15ebe58b4e
commit ee5769ad51
4 changed files with 367 additions and 362 deletions
+5
View File
@@ -1,3 +1,8 @@
2004-10-21 Ralf Corsepius <ralf_corsepius@rtems.org>
* clock/ckinit.c, include/mcf5272.h, timer/timer.c:
Use POSIX fixed-size types.
2004-08-02 Jay Monkman <jtm@lopingdog.com>
* .cvsignore, ChangeLog, Makefile.am, clock/.cvsignore, clock/ckinit.c,
+4 -4
View File
@@ -35,7 +35,7 @@
* Clock_driver_ticks is a monotonically increasing counter of the
* number of clock ticks since the driver was initialized.
*/
volatile rtems_unsigned32 Clock_driver_ticks;
volatile uint32_t Clock_driver_ticks;
/*
@@ -86,7 +86,7 @@ void
Clock_exit(void)
{
if (BSP_Configuration.ticks_per_timeslice) {
unsigned32 icr;
uint32_t icr;
/* disable all timer1 interrupts */
icr = g_intctrl_regs->icr1;
icr = icr & ~(MCF5272_ICR1_TMR1_MASK | MCF5272_ICR1_TMR1_PI);
@@ -115,7 +115,7 @@ Clock_exit(void)
static void
Install_clock(rtems_isr_entry clock_isr)
{
unsigned32 icr;
uint32_t icr;
Clock_driver_ticks = 0;
if (BSP_Configuration.ticks_per_timeslice) {
@@ -202,7 +202,7 @@ Clock_control(rtems_device_major_number major,
rtems_device_minor_number minor,
void *pargp)
{
rtems_unsigned32 isrlevel;
uint32_t isrlevel;
rtems_libio_ioctl_args_t *args = pargp;
if (args)
File diff suppressed because it is too large Load Diff
+4 -4
View File
@@ -29,7 +29,7 @@
#define TRR2_VAL 65530
rtems_unsigned32 Timer_interrupts;
uint32_t Timer_interrupts;
rtems_boolean Timer_driver_Find_average_overhead;
@@ -49,7 +49,7 @@ extern rtems_isr timerisr(rtems_vector_number vector);
void
Timer_initialize(void)
{
unsigned32 icr;
uint32_t icr;
/* Catch timer2 interrupts */
set_vector(timerisr, BSP_INTVEC_TMR2, 0);
@@ -109,8 +109,8 @@ Timer_initialize(void)
int
Read_timer( void )
{
rtems_unsigned16 clicks;
rtems_unsigned32 total;
uint16_t clicks;
uint32_t total;
/*
* Read the timer and see how many clicks it has been since counter