|
|
@ -58,6 +58,7 @@ void uClockClass::init() |
|
|
|
indiv96th_counter = 0; |
|
|
|
indiv96th_counter = 0; |
|
|
|
inmod6_counter = 0; |
|
|
|
inmod6_counter = 0; |
|
|
|
pll_x = 220; |
|
|
|
pll_x = 220; |
|
|
|
|
|
|
|
start_timer = 0; |
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Configure timers and prescale
|
|
|
|
// Configure timers and prescale
|
|
|
@ -113,6 +114,8 @@ void uClockClass::start() |
|
|
|
|
|
|
|
|
|
|
|
void uClockClass::stop() |
|
|
|
void uClockClass::stop() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
start_timer = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (mode == INTERNAL_CLOCK) { |
|
|
|
if (mode == INTERNAL_CLOCK) { |
|
|
|
state = PAUSED; |
|
|
|
state = PAUSED; |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -315,6 +318,11 @@ uint32_t uClockClass::getNowTimer() |
|
|
|
return _timer; |
|
|
|
return _timer; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uint32_t uClockClass::getPlayTime() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return start_timer; |
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} } // end namespace umodular::clock
|
|
|
|
} } // end namespace umodular::clock
|
|
|
|
|
|
|
|
|
|
|
|
umodular::clock::uClockClass uClock; |
|
|
|
umodular::clock::uClockClass uClock; |
|
|
|