Changed a part of the AT NVR code, inspired by the recent VARCem changes.
This commit is contained in:
@@ -515,13 +515,8 @@ timer_intr(void *priv)
|
|||||||
timer_advance_u64(&local->rtc_timer, RTCCONST);
|
timer_advance_u64(&local->rtc_timer, RTCCONST);
|
||||||
|
|
||||||
if (local->state == 1) {
|
if (local->state == 1) {
|
||||||
local->count--;
|
if (--local->count == 0) {
|
||||||
if (local->count == 0)
|
|
||||||
timer_load_count(nvr);
|
timer_load_count(nvr);
|
||||||
else
|
|
||||||
return;
|
|
||||||
} else
|
|
||||||
return;
|
|
||||||
|
|
||||||
nvr->regs[RTC_REGC] |= REGC_PF;
|
nvr->regs[RTC_REGC] |= REGC_PF;
|
||||||
if (nvr->regs[RTC_REGB] & REGB_PIE) {
|
if (nvr->regs[RTC_REGB] & REGB_PIE) {
|
||||||
@@ -532,6 +527,8 @@ timer_intr(void *priv)
|
|||||||
picint(1 << nvr->irq);
|
picint(1 << nvr->irq);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Callback from internal clock, another second passed. */
|
/* Callback from internal clock, another second passed. */
|
||||||
|
|||||||
Reference in New Issue
Block a user