Diff for /np2/io/pit.h between versions 1.1.1.1 and 1.8

version 1.1.1.1, 2003/10/16 17:57:56 version 1.8, 2004/07/01 11:42:54
Line 1 Line 1
   
 typedef struct {  typedef struct {
         BYTE            mode[4];          UINT8   ctrl;
         BYTE            flag[4];          UINT8   ch;
         BYTE            high[4];          UINT8   flag;
         union {          UINT8   stat;
                 BYTE    b[2];          UINT16  value;
                 UINT16  w;          UINT16  latch;
         } value[4];  } _PITCH, *PITCH;
         union {  
                 BYTE    b[2];  #if !defined(DISABLE_SOUND)
                 UINT16  w;  typedef struct {
         } latch[4];          _PITCH  ch[5];
   } _PIT, *PIT;
   #else
   typedef struct {
           _PITCH  ch[3];
 } _PIT, *PIT;  } _PIT, *PIT;
   #endif
   
   enum {
           PIT_CTRL_BCD    = 0x01,
           PIT_CTRL_MODE   = 0x0e,
           PIT_CTRL_RL             = 0x30,
           PIT_CTRL_SC             = 0xc0,
   
           PIT_RL_L                = 0x10,
           PIT_RL_H                = 0x20,
           PIT_RL_ALL              = 0x30,
   
           PIT_STAT_CMD    = 0x40,
           PIT_STAT_INT    = 0x80,
   
           PIT_FLAG_R              = 0x01,
           PIT_FLAG_W              = 0x02,
           PIT_FLAG_L              = 0x04,
           PIT_FLAG_S              = 0x08,
           PIT_FLAG_C              = 0x10,
           PIT_FLAG_I              = 0x20,
   
           PIT_LATCH_S             = 0x10,
           PIT_LATCH_C             = 0x20
   };
   
   
 #ifdef __cplusplus  #ifdef __cplusplus
 extern "C" {  extern "C" {
 #endif  #endif
   
 void systimer_noint(NEVENTITEM item);  
 void systimer(NEVENTITEM item);  void systimer(NEVENTITEM item);
 void beeponeshot(NEVENTITEM item);  void beeponeshot(NEVENTITEM item);
 void rs232ctimer(NEVENTITEM item);  void rs232ctimer(NEVENTITEM item);
   
 void itimer_setflag(int ch, BYTE value);  void pit_setflag(PITCH pitch, REG8 value);
 BOOL itimer_setcount(int ch, BYTE value);  BOOL pit_setcount(PITCH pitch, REG8 value);
 BYTE itimer_getcount(int ch);  UINT pit_getcount(PITCH pitch);
   REG8 pit_getstat(PITCH pitch);
   
 void itimer_reset(void);  void itimer_reset(void);
 void itimer_bind(void);  void itimer_bind(void);

Removed from v.1.1.1.1  
changed lines
  Added in v.1.8


RetroPC.NET-CVS <cvs@retropc.net>