Changeset 788
- Timestamp:
- 12/31/07 05:47:10 (16 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/libieee1394/CycleTimerHelper.cpp
r782 r788 162 162 CycleTimerHelper::Execute() 163 163 { 164 usleep( m_usecs_per_update);164 usleep(1000*1000); 165 165 return true; 166 166 } … … 172 172 if(!m_Parent.readCycleTimerReg(&cycle_timer, &local_time)) { 173 173 debugError("Could not read cycle timer register\n"); 174 return false;174 return 0; 175 175 } 176 176 return CYCLE_TIMER_TO_TICKS(cycle_timer); … … 183 183 } 184 184 185 uint32_t 186 CycleTimerHelper::getCycleTimer() 187 { 188 uint32_t cycle_timer; 189 uint64_t local_time; 190 if(!m_Parent.readCycleTimerReg(&cycle_timer, &local_time)) { 191 debugError("Could not read cycle timer register\n"); 192 return 0; 193 } 194 return cycle_timer; 195 } 196 197 uint32_t 198 CycleTimerHelper::getCycleTimer(uint64_t now) 199 { 200 return getCycleTimer(); 201 } 185 202 #else 186 203 … … 298 315 return retval; 299 316 } 317 318 uint32_t 319 CycleTimerHelper::getCycleTimer() 320 { 321 return TICKS_TO_CYCLE_TIMER(getCycleTimerTicks()); 322 } 323 324 uint32_t 325 CycleTimerHelper::getCycleTimer(uint64_t now) 326 { 327 return TICKS_TO_CYCLE_TIMER(getCycleTimerTicks(now)); 328 } 300 329 #endif 301 302 uint32_t303 CycleTimerHelper::getCycleTimer()304 {305 return TICKS_TO_CYCLE_TIMER(getCycleTimerTicks());306 }307 308 uint32_t309 CycleTimerHelper::getCycleTimer(uint64_t now)310 {311 return TICKS_TO_CYCLE_TIMER(getCycleTimerTicks(now));312 }313 330 314 331 void