xmil-libretro/fdd/fdd_mtr.h

46 lines
811 B
C
Raw Normal View History

2004-08-01 05:31:32 +00:00
#if 0
#define FDDMTR_INIT ;
#define FDDMTR_BUSY 0
#define FDDMTR_MOVE ;
#define FDDMTR_WAITSEC(v) ;
#define FDDMTR_CALLBACK(t) ;
#define FDDMTR_DRVSET ;
#else
2004-08-03 13:08:10 +00:00
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
UINT8 curevent;
UINT8 curdrv;
UINT8 padding[2];
UINT32 nextevent;
UINT8 head[4];
UINT32 eventtime[4];
} _FDDMTR, *FDDMTR;
extern _FDDMTR fddmtr;
void fddmtr_init(void);
void fddmtr_motormove(void);
2004-08-13 04:08:33 +00:00
void fddmtr_callback(UINT32 time);
void fddmtr_waitsec(UINT8 value);
2004-08-03 13:08:10 +00:00
void fddmtr_drvset(void);
#ifdef __cplusplus
}
#endif
2004-08-01 05:31:32 +00:00
#define FDDMTR_INIT fddmtr_init()
2004-08-03 13:08:10 +00:00
#define FDDMTR_BUSY fddmtr.curevent
2004-08-01 05:31:32 +00:00
#define FDDMTR_MOVE fddmtr_motormove()
#define FDDMTR_WAITSEC(t) fddmtr_waitsec(t)
#define FDDMTR_CALLBACK(t) fddmtr_callback(t)
#define FDDMTR_DRVSET fddmtr_drvset()
#endif