Changeset 821b2a9 in rtems
- Timestamp:
- 03/31/04 05:07:48 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 6fda59f
- Parents:
- 492bb09
- Location:
- c/src/lib/libbsp/i386/ts_386ex
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/i386/ts_386ex/ChangeLog
r492bb09 r821b2a9 1 2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org> 2 3 * clock/ckinit.c, clock/rtc.c, include/bsp.h, startup/bspstart.c, 4 timer/timer.c: Convert to using c99 fixed size types. 5 1 6 2004-02-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 7 -
c/src/lib/libbsp/i386/ts_386ex/clock/ckinit.c
r492bb09 r821b2a9 27 27 #include <stdlib.h> 28 28 29 rtems_unsigned32Clock_isrs; /* ISRs until next tick */30 static rtems_unsigned32Clock_initial_isr_value;29 uint32_t Clock_isrs; /* ISRs until next tick */ 30 static uint32_t Clock_initial_isr_value; 31 31 32 volatile rtems_unsigned32Clock_driver_ticks;32 volatile uint32_t Clock_driver_ticks; 33 33 34 34 void Clock_exit( void ); -
c/src/lib/libbsp/i386/ts_386ex/clock/rtc.c
r492bb09 r821b2a9 82 82 | Returns: BCD representation of number. 83 83 +--------------------------------------------------------------------------*/ 84 static inline rtems_unsigned885 bcd( rtems_unsigned8i)84 static inline uint8_t 85 bcd(uint8_t i) 86 86 { 87 87 return ((i / 16) * 10 + (i % 16)); … … 102 102 | Returns: number of seconds since 1970. 103 103 +--------------------------------------------------------------------------*/ 104 static inline rtems_unsigned32105 ytos( rtems_unsigned16y)104 static inline uint32_t 105 ytos(uint16_t y) 106 106 { /* v NUM LEAP YEARS v */ 107 107 return ((y - 1970) * SECS_PER_REG_YEAR + (y - 1970 + 1) / 4 * SECS_PER_DAY); … … 116 116 | Returns: number of seconds since January. 117 117 +--------------------------------------------------------------------------*/ 118 static inline rtems_unsigned32119 mtos( rtems_unsigned8m, rtems_boolean leap)120 { 121 static rtems_unsigned16daysMonth[] = { 0, 0, 31, 59, 90, 120, 151, 181,118 static inline uint32_t 119 mtos(uint8_t m, rtems_boolean leap) 120 { 121 static uint16_t daysMonth[] = { 0, 0, 31, 59, 90, 120, 151, 181, 122 122 212, 243, 273, 304, 334, 365 }; 123 123 /* Days since beginning of year until beginning of month. */ … … 135 135 | Returns: result received from RTC port after action performed. 136 136 +--------------------------------------------------------------------------*/ 137 static inline rtems_unsigned8138 rtcin( rtems_unsigned8what)139 { 140 rtems_unsigned8r;137 static inline uint8_t 138 rtcin(uint8_t what) 139 { 140 uint8_t r; 141 141 142 142 outport_byte(IO_RTC, what); … … 159 159 init_rtc(void) 160 160 { 161 rtems_unsigned8s;161 uint8_t s; 162 162 163 163 /* initialize brain-dead battery powered clock */ … … 187 187 rtc_read(rtems_time_of_day *tod) 188 188 { 189 rtems_unsigned8sa;190 rtems_unsigned32sec = 0;189 uint8_t sa; 190 uint32_t sec = 0; 191 191 192 192 memset(tod, 0, sizeof *tod); /* zero tod structure */ -
c/src/lib/libbsp/i386/ts_386ex/include/bsp.h
r492bb09 r821b2a9 119 119 #define rtems_bsp_delay( _microseconds ) \ 120 120 { \ 121 rtems_unsigned32_counter; \121 uint32_t _counter; \ 122 122 \ 123 123 _counter = (_microseconds); \ -
c/src/lib/libbsp/i386/ts_386ex/startup/bspstart.c
r492bb09 r821b2a9 41 41 */ 42 42 43 extern rtems_unsigned32rdb_start;43 extern uint32_t rdb_start; 44 44 45 45 /* … … 48 48 49 49 void bsp_postdriver_hook(void); 50 void bsp_libc_init( void *, u nsigned32, int );50 void bsp_libc_init( void *, uint32_t, int ); 51 51 52 52 /* … … 67 67 { 68 68 extern int heap_bottom; 69 rtems_unsigned32heap_start;70 rtems_unsigned32heap_size;69 uint32_t heap_start; 70 uint32_t heap_size; 71 71 72 heap_start = ( rtems_unsigned32) &heap_bottom;72 heap_start = (uint32_t) &heap_bottom; 73 73 if (heap_start & (CPU_ALIGNMENT-1)) 74 74 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); -
c/src/lib/libbsp/i386/ts_386ex/timer/timer.c
r492bb09 r821b2a9 29 29 #include <stdlib.h> 30 30 31 volatile rtems_unsigned32Ttimer_val; /* Updated from ISR!!! */31 volatile uint32_t Ttimer_val; /* Updated from ISR!!! */ 32 32 rtems_boolean Timer_driver_Find_average_overhead; 33 33 … … 138 138 int Read_timer(void) 139 139 { 140 register rtems_unsigned32clicks, total;141 register rtems_unsigned8lsb, msb;140 register uint32_t clicks, total; 141 register uint8_t lsb, msb; 142 142 143 143 /* latch the count */
Note: See TracChangeset
for help on using the changeset viewer.