Changeset c35e9622 in rtems for c/src/lib/libbsp/i386/go32/timer/timer.c
- Timestamp:
- 07/24/95 15:43:17 (28 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 3d3a3590
- Parents:
- 2f2a597
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/i386/go32/timer/timer.c
r2f2a597 rc35e9622 36 36 } 37 37 #else 38 #define US_PER_ISR 250 38 39 extern rtems_isr timerisr(); 39 40 static rtems_isr_entry Old_Ticker; … … 84 85 continue; 85 86 86 /* load timer for 250microsecond period */87 /* load timer for US_PER_ISR microsecond period */ 87 88 outport_byte( TIMER_MODE, TIMER_SEL0|TIMER_16BIT|TIMER_RATEGEN ); 88 outport_byte( TIMER_CNTR0, US_TO_TICK( 250) >> 0 & 0xff );89 outport_byte( TIMER_CNTR0, US_TO_TICK( 250) >> 8 & 0xff );89 outport_byte( TIMER_CNTR0, US_TO_TICK(US_PER_ISR) >> 0 & 0xff ); 90 outport_byte( TIMER_CNTR0, US_TO_TICK(US_PER_ISR) >> 8 & 0xff ); 90 91 #endif /* PENTIUM */ 91 92 } … … 118 119 inport_byte( TIMER_CNTR0, msb ); 119 120 clicks = msb << 8 | lsb; 120 total = Ttimer_val + 250 - TICK_TO_US( clicks);121 total = (Ttimer_val * US_PER_ISR) + (US_PER_ISR - TICK_TO_US( clicks )); 121 122 #endif /* pentium */ 122 123
Note: See TracChangeset
for help on using the changeset viewer.