Poke_Transporter_GB/include/timing_basic.h
Remnants of Forgotten Disney eb87ab3c03 Inital implementation of Save.C
2023-12-03 14:22:04 -06:00

15 lines
445 B
C

//Created by Lorenzooone https://github.com/Lorenzooone/Pokemon-Gen3-to-Gen-X
#ifndef TIMING_BASIC__
#define TIMING_BASIC__
#define FPS 60
#define NS_PER_SECOND 1000000000
#define NS_PER_CYCLE ((NS_PER_SECOND + CLOCK_SPEED - 1)/CLOCK_SPEED)
#define NS_PER_SCANLINE ((NS_PER_SECOND + (FPS*SCANLINES) - 1)/(FPS*SCANLINES))
#define CYCLES_PER_SCANLINE ((NS_PER_SCANLINE + NS_PER_CYCLE - 1)/NS_PER_CYCLE)
#define GBA_CLOCK_SPEED 16777216
#endif