Fix NDS time setting

This commit is contained in:
Lorenzooone 2023-11-30 21:19:25 +01:00
parent b3500631ba
commit 856380cee3
2 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -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();