Enable PIT ISR to count milliseconds
This commit is contained in:
1 parent
e357f2ba44
commit
e480bd0ed0
4 files changed
+18
-5
No files matched your search
@@ -79,11 +79,9 @@ struct Rtc
|
||||
public static void isr()
|
||||
{
|
||||
static __gshared ulong count;
|
||||
static __gshared ulong seconds;
|
||||
count++;
|
||||
if ((count % 1024) == 0u)
|
||||
{
|
||||
seconds++;
|
||||
Console.update_header();
|
||||
}
|
||||
eoi();
|
||||
|
||||
Reference in new issue
Block a user