]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/lx-dad.git/blob - sw/app/lx_dad/appl_fpga.h
1d92e1d1cbb2841bc789c507b45593211c1b8130
[fpga/lx-cpu1/lx-dad.git] / sw / app / lx_dad / appl_fpga.h
1 #ifndef _APPL_FPGA_H
2 #define _APPL_FPGA_H
3
4 #include "appl_defs.h"
5
6 /* Register defines */
7
8 /* Configuration defines */
9
10 #define FPGA_CONFIGURATION_FILE_ADDRESS 0xA1C00000
11
12 #define FPGA_CONF_SUCESS              0
13 #define FPGA_CONF_ERR_RECONF_LOCKED   1
14 #define FPGA_CONF_ERR_RESET_FAIL      2
15 #define FPGA_CONF_ERR_WRITE_ERR       3
16 #define FPGA_CONF_ERR_CRC_ERR         4
17
18 int (*fpga_reconfiguaration_initiated)(void);
19 int (*fpga_reconfiguaration_finished)(void);
20
21 void fpga_init();
22 int fpga_configure();
23 int fpga_measure_bus_read();
24 int fpga_measure_bus_write();
25 void fpga_set_reconfiguration_lock(int lock);
26 int fpga_get_reconfiguration_lock();
27
28 #endif /*_APPL_FPGA_H*/