if (count2 < count1) { /* * The timer has not reloaded between reading count1 and * count2, check whether an interrupt was actually pending.
*/ if (status & (1 << 5))
ticks += RPC_LATCH;
} elseif (count2 > count1) { /* * The timer has reloaded, so count2 indicates the new * count since the wrap. The interrupt would not have * been processed, so add the missed ticks.
*/
ticks += RPC_LATCH;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.