Changeset 24282451 in rtems


Ignore:
Timestamp:
03/31/04 04:40:15 (20 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
6cfc0a4
Parents:
a4318d0c
Message:

2004-03-31 Ralf Corsepius <ralf_corsepius@…>

  • clock/ckinit.c, console/console.c, include/bsp.h, startup/bspstart.c, timer/timer.c: Convert to using c99 fixed size types.
Location:
c/src/lib/libbsp/m68k/mvme147
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/mvme147/ChangeLog

    ra4318d0c r24282451  
     12004-03-31      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * clock/ckinit.c, console/console.c, include/bsp.h,
     4        startup/bspstart.c, timer/timer.c: Convert to using c99 fixed size
     5        types.
     6
    172004-02-19      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    28
  • c/src/lib/libbsp/m68k/mvme147/clock/ckinit.c

    ra4318d0c r24282451  
    3131#define CLOCK_INT_LEVEL   6               /* T2's interrupt level */
    3232
    33 rtems_unsigned32 Clock_isrs;                  /* ISRs until next tick */
    34 volatile rtems_unsigned32 Clock_driver_ticks; /* ticks since initialization */
     33uint32_t        Clock_isrs;                  /* ISRs until next tick */
     34volatile uint32_t        Clock_driver_ticks; /* ticks since initialization */
    3535rtems_isr_entry  Old_ticker;
    3636
     
    109109)
    110110{
    111     rtems_unsigned32 isrlevel;
     111    uint32_t        isrlevel;
    112112    rtems_libio_ioctl_args_t *args = pargp;
    113113 
  • c/src/lib/libbsp/m68k/mvme147/console/console.c

    ra4318d0c r24282451  
    7171)
    7272{
    73   rtems_unsigned8 rr_0;
     73  uint8_t        rr_0;
    7474
    7575  for ( ; ; ) {
     
    9797char inbyte( void )
    9898{
    99   rtems_unsigned8 rr_0;
     99  uint8_t        rr_0;
    100100  char ch;
    101101
     
    125125)
    126126{
    127   rtems_unsigned8 rr_0;
     127  uint8_t        rr_0;
    128128  char            flow_control;
    129129
  • c/src/lib/libbsp/m68k/mvme147/include/bsp.h

    ra4318d0c r24282451  
    5050struct pcc_map {
    5151  /* 32 bit registers */
    52   rtems_unsigned32 dma_table_address;            /* 0xfffe1000 */
    53   rtems_unsigned32 dma_data_address;             /* 0xfffe1004 */
    54   rtems_unsigned32 dma_bytecount;                /* 0xfffe1008 */
    55   rtems_unsigned32 dma_data_holding;             /* 0xfffe100c */
     52  uint32_t        dma_table_address;            /* 0xfffe1000 */
     53  uint32_t        dma_data_address;             /* 0xfffe1004 */
     54  uint32_t        dma_bytecount;                /* 0xfffe1008 */
     55  uint32_t        dma_data_holding;             /* 0xfffe100c */
    5656
    5757  /* 16 bit registers */
    58   rtems_unsigned16 timer1_preload;               /* 0xfffe1010 */
    59   rtems_unsigned16 timer1_count;                 /* 0xfffe1012 */
    60   rtems_unsigned16 timer2_preload;               /* 0xfffe1014 */
    61   rtems_unsigned16 timer2_count;                 /* 0xfffe1016 */
     58  uint16_t        timer1_preload;               /* 0xfffe1010 */
     59  uint16_t        timer1_count;                 /* 0xfffe1012 */
     60  uint16_t        timer2_preload;               /* 0xfffe1014 */
     61  uint16_t        timer2_count;                 /* 0xfffe1016 */
    6262
    6363  /* 8 bit registers */
    64   rtems_unsigned8 timer1_int_control;            /* 0xfffe1018 */
    65   rtems_unsigned8 timer1_control;                /* 0xfffe1019 */
    66   rtems_unsigned8 timer2_int_control;            /* 0xfffe101a */
    67   rtems_unsigned8 timer2_control;                /* 0xfffe101b */
     64  uint8_t        timer1_int_control;            /* 0xfffe1018 */
     65  uint8_t        timer1_control;                /* 0xfffe1019 */
     66  uint8_t        timer2_int_control;            /* 0xfffe101a */
     67  uint8_t        timer2_control;                /* 0xfffe101b */
    6868
    69   rtems_unsigned8 acfail_int_control;            /* 0xfffe101c */
    70   rtems_unsigned8 watchdog_control;              /* 0xfffe101d */
     69  uint8_t        acfail_int_control;            /* 0xfffe101c */
     70  uint8_t        watchdog_control;              /* 0xfffe101d */
    7171
    72   rtems_unsigned8 printer_int_control;           /* 0xfffe101e */
    73   rtems_unsigned8 printer_control;               /* 0xfffe102f */
     72  uint8_t        printer_int_control;           /* 0xfffe101e */
     73  uint8_t        printer_control;               /* 0xfffe102f */
    7474
    75   rtems_unsigned8 dma_int_control;               /* 0xfffe1020 */
    76   rtems_unsigned8 dma_control;                   /* 0xfffe1021 */
    77   rtems_unsigned8 bus_error_int_control;         /* 0xfffe1022 */
    78   rtems_unsigned8 dma_status;                    /* 0xfffe1023 */
    79   rtems_unsigned8 abort_int_control;             /* 0xfffe1024 */
    80   rtems_unsigned8 table_address_function_code;   /* 0xfffe1025 */
    81   rtems_unsigned8 serial_port_int_control;       /* 0xfffe1026 */
    82   rtems_unsigned8 general_purpose_control;       /* 0xfffe1027 */
    83   rtems_unsigned8 lan_int_control;               /* 0xfffe1028 */
    84   rtems_unsigned8 general_purpose_status;        /* 0xfffe1029 */
    85   rtems_unsigned8 scsi_port_int_control;         /* 0xfffe102a */
    86   rtems_unsigned8 slave_base_address;            /* 0xfffe102b */
    87   rtems_unsigned8 software_int_1_control;        /* 0xfffe102c */
    88   rtems_unsigned8 int_base_vector;               /* 0xfffe102d */
    89   rtems_unsigned8 software_int_2_control;        /* 0xfffe102e */
    90   rtems_unsigned8 revision_level;                /* 0xfffe102f */
     75  uint8_t        dma_int_control;               /* 0xfffe1020 */
     76  uint8_t        dma_control;                   /* 0xfffe1021 */
     77  uint8_t        bus_error_int_control;         /* 0xfffe1022 */
     78  uint8_t        dma_status;                    /* 0xfffe1023 */
     79  uint8_t        abort_int_control;             /* 0xfffe1024 */
     80  uint8_t        table_address_function_code;   /* 0xfffe1025 */
     81  uint8_t        serial_port_int_control;       /* 0xfffe1026 */
     82  uint8_t        general_purpose_control;       /* 0xfffe1027 */
     83  uint8_t        lan_int_control;               /* 0xfffe1028 */
     84  uint8_t        general_purpose_status;        /* 0xfffe1029 */
     85  uint8_t        scsi_port_int_control;         /* 0xfffe102a */
     86  uint8_t        slave_base_address;            /* 0xfffe102b */
     87  uint8_t        software_int_1_control;        /* 0xfffe102c */
     88  uint8_t        int_base_vector;               /* 0xfffe102d */
     89  uint8_t        software_int_2_control;        /* 0xfffe102e */
     90  uint8_t        revision_level;                /* 0xfffe102f */
    9191};
    9292
  • c/src/lib/libbsp/m68k/mvme147/startup/bspstart.c

    ra4318d0c r24282451  
    4242 
    4343void bsp_postdriver_hook(void);
    44 void bsp_libc_init( void *, unsigned32, int );
     44void bsp_libc_init( void *, uint32_t, int );
    4545void bsp_pretasking_hook(void);               /* m68k version */
    4646
     
    7676  pcc->int_base_vector = PCC_BASE_VECTOR; /* Set the PCC int vectors base */
    7777
    78   (*(rtems_unsigned8 *)0xfffe2001) = 0x08;
     78  (*(uint8_t*)0xfffe2001) = 0x08;
    7979      /* make VME access round-robin */
    8080
  • c/src/lib/libbsp/m68k/mvme147/timer/timer.c

    ra4318d0c r24282451  
    5959int Read_timer()
    6060{
    61   rtems_unsigned32 total;
    62   rtems_unsigned16 counter_value;
     61  uint32_t        total;
     62  uint16_t        counter_value;
    6363
    6464  counter_value = pcc->timer1_count; /* read the counter value */
Note: See TracChangeset for help on using the changeset viewer.