Comms between MAX 10 FPGA and ST uP
Diff: FPGA_bus.h
- Revision:
- 21:6b2b7a0e2d9a
- Parent:
- 20:aacf2ebd93ff
- Child:
- 22:c47d4177d59c
--- a/FPGA_bus.h Mon Jun 15 21:29:40 2020 +0000 +++ b/FPGA_bus.h Tue Jun 16 23:06:04 2020 +0000 @@ -76,14 +76,14 @@ #define nS_IN_uS 1000 #define FPGA_CLOCK_PERIOD_nS 20 -#define NOS_BUS_CHECKS 3 // number of times to test bus -#define BUS_TEST_TIMEOUT 1000 // loop counts for timeout test +#define uS_DELAY_BEFORE_TEST_HANDSHAKE 25 ////////////////////////////////////////////////////////////////////////// // error codes -#define NO_ERROR 0 -#define BUS_FAIL -30 +#define NO_ERROR 0 +#define BUS_FAIL_1 -30 // handshake_2 initially HIGH but should be LOW +#define BUS_FAIL_2 -31 // handshake_2 not transitioned to HIGH ////////////////////////////////////////////////////////////////////////// // typedef structures