More fixes

This commit is contained in:
dbalatoni13 2025-04-06 22:04:10 +02:00
parent dee0ba15d4
commit 10efa92153
8 changed files with 99 additions and 39 deletions

View file

@ -23,10 +23,15 @@ extern "C" {
#endif
typedef s64 OSTime;
typedef u32 OSTick;
#ifdef __MWERKS__
u32 __OSBusClock AT_ADDRESS(OS_BASE_CACHED | 0x00F8); // sync with OSLoMem.h
u32 __OSCoreClock AT_ADDRESS(OS_BASE_CACHED | 0x00FC); // sync with OSLoMem.h
#define OS_BUS_CLOCK (u32) __OSBusClock
#define OS_CORE_CLOCK __OSCoreClock
#else
#define OS_BUS_CLOCK 162000000
#define OS_BUS_CLOCK 486000000
#endif
#define OS_TIMER_CLOCK (OS_BUS_CLOCK / 4)
#ifndef _DEBUG