equal
deleted
inserted
replaced
221 TUint64 x = I64LIT(1000000); |
221 TUint64 x = I64LIT(1000000); |
222 x *= TUint64(aTicks); |
222 x *= TUint64(aTicks); |
223 x += TUint64(f>>1); |
223 x += TUint64(f>>1); |
224 x /= TUint64(f); |
224 x /= TUint64(f); |
225 return (TUint)x; |
225 return (TUint)x; |
|
226 #endif |
|
227 #if defined(__MRAP__) |
|
228 // RTC runs with 32.768 kHz -> one tick is |
|
229 const TUint KRTCClockHz = 32768; |
|
230 Int64 ticks(aTicks); |
|
231 ticks*=(1000000); |
|
232 ticks+=KRTCClockHz/2; // 32.768 kHz tick |
|
233 ticks/=KRTCClockHz; |
|
234 return (TInt)ticks; |
226 #endif |
235 #endif |
227 #if defined(__MAWD__) || defined(__MEIG__) |
236 #if defined(__MAWD__) || defined(__MEIG__) |
228 return aTicks*500; // 2kHz tick |
237 return aTicks*500; // 2kHz tick |
229 #endif |
238 #endif |
230 #if defined(__EPOC32__) && defined(__CPU_X86) |
239 #if defined(__EPOC32__) && defined(__CPU_X86) |
600 TRvEmuBoard::EnableTimer(KHwCounterTimer1, TRvEmuBoard::EEnable); |
609 TRvEmuBoard::EnableTimer(KHwCounterTimer1, TRvEmuBoard::EEnable); |
601 #endif |
610 #endif |
602 #if defined(__NE1_TB__) |
611 #if defined(__NE1_TB__) |
603 // nothing to do since we use fast counter |
612 // nothing to do since we use fast counter |
604 #endif |
613 #endif |
|
614 #if defined(__MRAP__) |
|
615 // nothing to do here RTC runs with 32.768 kHz |
|
616 #endif |
605 #ifdef __MAWD__ |
617 #ifdef __MAWD__ |
606 // Set up timer 1 as free running 2kHz clock |
618 // Set up timer 1 as free running 2kHz clock |
607 TWind::SetBuzzerControl(0); // disable buzzer |
619 TWind::SetBuzzerControl(0); // disable buzzer |
608 TWind::SetTimer1Control(KWindTimer1ControlTimerEnable); |
620 TWind::SetTimer1Control(KWindTimer1ControlTimerEnable); |
609 TWind::SetTimer1Load(0); |
621 TWind::SetTimer1Load(0); |