psx.h: define root counter specs as macros

ISO C considers enumerators of int type, so any value larger than
0x7FFFFFFF is considered invalid on platforms where sizeof (int) == 4.
A workaround for this limitation on the language is to use macros
instead.
This commit is contained in:
Xavier Del Campo Romero 2022-02-07 01:30:35 +01:00
parent ec53e6d22f
commit d13246d52f
1 changed files with 8 additions and 12 deletions

View File

@ -125,18 +125,14 @@ enum cop0_register_numbers
/**
* Root counter specifications
*/
enum psx_rcnt_specs
{
/** Pixel clock*/
RCntCNT0 = 0xf2000000,
/** Horizontal sync*/
RCntCNT1 = 0xf2000001,
/** System clock / 8 */
RCntCNT2 = 0xf2000002,
/** VSync (VBlank) */
RCntCNT3 = 0xf2000003,
};
/** Pixel clock*/
#define RCntCNT0 0xf2000000
/** Horizontal sync*/
#define RCntCNT1 0xf2000001
/** System clock / 8 */
#define RCntCNT2 0xf2000002
/** VSync (VBlank) */
#define RCntCNT3 0xf2000003
/**
* Root counter modes