From 856380cee36c55cdc03872172cf8a38ccee9d8ed Mon Sep 17 00:00:00 2001 From: Lorenzooone Date: Thu, 30 Nov 2023 21:19:25 +0100 Subject: [PATCH] Fix NDS time setting --- include/base_include.h | 4 +--- source/main.c | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/base_include.h b/include/base_include.h index 1a69465..1cc2b7e 100644 --- a/include/base_include.h +++ b/include/base_include.h @@ -54,9 +54,7 @@ ALWAYS_INLINE MAX_OPTIMIZE void __reset_vcount(void) { #define REG_WAITCNT REG_EXMEMCNT // Wait state Control #define SRAM_READING_VALID_WAITCYCLES 3 #define NON_SRAM_MASK 0xFFFC -#define EXMEMCNT_MASK_SLOT2_CLOCKRATE (3<<5) -#define EXMEMCNT_SLOT2_CLOCKRATE_1 (1<<5) -#define BASE_WAITCNT_VAL EXMEMCNT_SLOT2_CLOCKRATE_1 +#define BASE_WAITCNT_VAL 0x0014 #define TIMEOUT_INCREASE 2 #define OVRAM_START ((uintptr_t)SPRITE_GFX) #define OVRAM_START_SUB ((uintptr_t)SPRITE_GFX_SUB) diff --git a/source/main.c b/source/main.c index a318efe..125eecf 100644 --- a/source/main.c +++ b/source/main.c @@ -89,6 +89,7 @@ int main(void) u8 cursor_y_pos = 0; u32 date = 0x00010100; u32 time = 0; + REG_WAITCNT = BASE_WAITCNT_VAL; //enable_ezo_clock();