Files
Main/fpga_io.h
Alan Steremberg d981092caa Add support for /arcade folder, and MRA xml decoding
* round trip xml launch

* roms load

* removed debug

* added binary data and changed rom format

* changed hex format

* fixed bug

* added structure and start/length

* removed base64 support

* removed base64 support

* fixed parsing bugs

* fixed hex parse bug

* fixed parser

* fixing paths

* fixed rbf parser

* fixed initialization bug

* fixed extension removal for when there are multiple extension options

* fixed core path and cleaned up filelength

* added md5 checks to arcade roms

* fixed rbf search

* added error support

* Simplify error checking code

* fixed arcade error message pop up

* fixed bug in part zip initialization

* removed dtdt

* don't load second rom0 if first works

* fixed directory problem

* added more comments

* added / to zip path

* fixed / bug, truncate mame zip error message

* fixed scrolling RBF

* fixed scrolling name and error message

* added code to remove _date in scrolling text

* remove redundant /
2019-12-12 00:33:27 +08:00

36 lines
717 B
C

#include <stdint.h>
#ifndef FPGAIO_H
#define FPGAIO_H
#define BUTTON_OSD 1
#define BUTTON_USR 2
int fpga_io_init();
void fpga_gpo_write(uint32_t value);
uint32_t fpga_gpo_read();
int fpga_gpi_read();
void fpga_set_led(uint32_t on);
int fpga_get_buttons();
int fpga_get_io_type();
void fpga_core_reset(int reset);
void fpga_core_write(uint32_t offset, uint32_t value);
uint32_t fpga_core_read(uint32_t offset);
int fpga_core_id();
int is_fpga_ready(int quick);
int fpga_get_fio_size();
int fpga_get_io_version();
int fpga_load_rbf(const char *name, const char *cfg = NULL, const char *xml=NULL);
void reboot(int cold);
void app_restart(const char *path, const char *xml=NULL);
char *getappname();
#endif