Idle EC in main loop

This commit is contained in:
Jeremy Soller 2020-02-04 11:49:03 -07:00
parent 1aff0b085d
commit 9992828bde
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
6 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,4 @@
#include <8051.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
@ -151,5 +152,7 @@ void main(void) {
}
// Handles ACPI communication
pmc_event(&PMC_1);
// Idle until next timer interrupt
PCON |= 1;
}
}

View File

@ -1,5 +1,3 @@
#include <mcs51/8051.h>
#include <arch/delay.h>
#include <arch/time.h>
#include <board/battery.h>

View File

@ -1,3 +1,4 @@
#include <8051.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
@ -153,5 +154,7 @@ void main(void) {
}
// Handles ACPI communication
pmc_event(&PMC_1);
// Idle until next timer interrupt
PCON |= 1;
}
}

View File

@ -1,5 +1,3 @@
#include <mcs51/8051.h>
#include <arch/delay.h>
#include <arch/time.h>
#include <board/battery.h>

View File

@ -1,3 +1,4 @@
#include <8051.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
@ -153,5 +154,7 @@ void main(void) {
}
// Handles ACPI communication
pmc_event(&PMC_1);
// Idle until next timer interrupt
PCON |= 1;
}
}

View File

@ -1,5 +1,3 @@
#include <mcs51/8051.h>
#include <arch/delay.h>
#include <arch/time.h>
#include <board/battery.h>