--- xmil/io/ctc.h 2004/08/17 14:46:37 1.8 +++ xmil/io/ctc.h 2008/06/02 20:07:31 1.10 @@ -1,11 +1,10 @@ -#if 0 enum { CTC_OPM = 0, CTC_TURBO1 = 1, CTC_TURBO2 = 2 }; -#endif + typedef struct { UINT32 baseclock; @@ -19,6 +18,16 @@ typedef struct { SINT32 count[4]; SINT32 countmax[4]; SINT32 range[4]; +} CTCCHST; + +typedef struct { + UINT neventid; + UINT32 ieventbit; +} CTCCHEX; + +typedef struct { + CTCCHST s; + CTCCHEX e; } CTCCH; typedef struct { @@ -34,8 +43,8 @@ void neitem_ctc(UINT id); BRESULT ieitem_ctc(UINT id); void ieeoi_ctc(UINT id); -void IOOUTCALL ctc_o(UINT port, REG8 dat); // x1_ctc_w -REG8 IOINPCALL ctc_i(UINT port); // x1_ctc_r +void IOOUTCALL ctc_o(UINT port, REG8 dat); +REG8 IOINPCALL ctc_i(UINT port); void ctc_reset(void);