| 326 | } |
| 327 | |
| 328 | void TimerSetValue( TimerEvent_t *obj, uint32_t value ) |
| 329 | { |
| 330 | uint32_t minValue = 0; |
| 331 | uint32_t ticks = RtcMs2Tick( value ); |
| 332 | |
| 333 | TimerStop( obj ); |
| 334 | |
| 335 | minValue = RtcGetMinimumTimeout( ); |
| 336 | |
| 337 | if( ticks < minValue ) |
| 338 | { |
| 339 | ticks = minValue; |
| 340 | } |
| 341 | |
| 342 | obj->Timestamp = ticks; |
| 343 | obj->ReloadValue = ticks; |
| 344 | } |
| 345 | |
| 346 | TimerTime_t TimerGetCurrentTime( void ) |
| 347 | { |
no test coverage detected