mirror of
https://github.com/reactos/reactos.git
synced 2025-08-11 13:35:33 +00:00
[HAL][FREELDR] Fix system timer oscillator frequency on a Xbox (#2245)
See https://xboxdevwiki.net/Porting_an_Operating_System_to_the_Xbox_HOWTO#Timer_Frequency
This commit is contained in:
parent
7c93350e05
commit
e5c0052466
2 changed files with 15 additions and 2 deletions
|
@ -27,8 +27,13 @@ DBG_DEFAULT_CHANNEL(HWDETECT);
|
|||
#define MILLISEC (10)
|
||||
#define PRECISION (8)
|
||||
|
||||
#if defined(SARCH_XBOX)
|
||||
#define CLOCK_TICK_RATE 1125000
|
||||
#else
|
||||
#define CLOCK_TICK_RATE 1193182
|
||||
#endif
|
||||
|
||||
#define HZ (100)
|
||||
#define CLOCK_TICK_RATE (1193182)
|
||||
#define LATCH (CLOCK_TICK_RATE / HZ)
|
||||
|
||||
static unsigned int delay_count = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue