[turbine/gba] Make wake up time static
This commit is contained in:
parent
d23b69ce17
commit
34081a0414
@ -21,7 +21,7 @@ using namespace turbine;
|
|||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
void turbine_isr_vblank() {
|
void turbine_isr_vblank() noexcept {
|
||||||
teagba::applySpriteUpdates();
|
teagba::applySpriteUpdates();
|
||||||
if constexpr(config::GbaEventLoopTimerBased) {
|
if constexpr(config::GbaEventLoopTimerBased) {
|
||||||
// disable vblank interrupt until it is needed again
|
// disable vblank interrupt until it is needed again
|
||||||
@ -29,7 +29,7 @@ void turbine_isr_vblank() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void turbine_isr_timer0() {
|
void turbine_isr_timer0() noexcept {
|
||||||
g_timerMs = g_timerMs + 1;
|
g_timerMs = g_timerMs + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
namespace turbine {
|
namespace turbine {
|
||||||
|
|
||||||
extern volatile gba_timer_t g_timerMs;
|
extern volatile gba_timer_t g_timerMs;
|
||||||
gba_timer_t g_wakeupTime;
|
static gba_timer_t g_wakeupTime{};
|
||||||
|
|
||||||
ox::Error run(Context &ctx) noexcept {
|
ox::Error run(Context &ctx) noexcept {
|
||||||
g_wakeupTime = 0;
|
g_wakeupTime = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user