]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - include/z80-if.h
mcd_mem.c: use cmd_error(), z80_bus_request_or_exit()
[z180-stamp.git] / include / z80-if.h
index 58790bd44bb719cd28a09545af275e8e7d51a7b3..d5a5f568476b4e4484de380ab4ca1fa01f45a9fd 100644 (file)
@@ -1,8 +1,9 @@
 /*
  * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
  *
- * SPDX-License-Identifier:    GPL-2.0+
+ * SPDX-License-Identifier:    GPL-2.0
  */
+#include "common.h"
 
 #define ZST_ACQUIRED   0x01
 #define ZST_RUNNING    0x02
@@ -25,6 +26,9 @@ typedef enum {
 
 typedef enum {LOW, HIGH} level_t;
 
+
+void z80_bus_request_or_exit(void);
+
 zstate_t z80_bus_state(void);
 zstate_t z80_bus_cmd(bus_cmd_t cmd);
 void z80_setup_bus(void);
@@ -43,7 +47,7 @@ void z80_read_block (uint8_t *dest, uint32_t src, size_t length);
 
 typedef enum fifo_t {
                fifo_msgin, fifo_msgout,
-               fifo_conout, fifo_conin,
+               fifo_conin, fifo_conout,
                NUM_FIFOS
        } fifo_t;