aboutsummaryrefslogtreecommitdiff
path: root/stm-fmc.h
diff options
context:
space:
mode:
authorFredrik Thulin <fredrik@thulin.net>2016-05-22 15:32:09 +0200
committerFredrik Thulin <fredrik@thulin.net>2016-05-22 15:32:09 +0200
commit578d7f5757613898d36fd999a409e5b9f5796136 (patch)
tree2ab6f456e824ceff7360e8c6f6b2ed9fd4f53e5f /stm-fmc.h
parentfd60daaeb372759f2990f059ce027616439fac28 (diff)
reindent/reformat to closer resemble rest of code base
Diffstat (limited to 'stm-fmc.h')
-rw-r--r--stm-fmc.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/stm-fmc.h b/stm-fmc.h
index 9e34d32..7b73a94 100644
--- a/stm-fmc.h
+++ b/stm-fmc.h
@@ -35,7 +35,15 @@
#ifndef __STM_FMC_H
#define __STM_FMC_H
-#include <stdint.h>
+#define FMC_FPGA_BASE_ADDR 0x60000000
+#define FMC_FPGA_ADDR_MASK 0x03FFFFFC // there are 26 physical lines, but "only" 24 usable for now
+#define FMC_FPGA_NWAIT_MAX_POLL_TICKS 10
+
+#define FMC_GPIO_PORT_NWAIT GPIOD
+#define FMC_GPIO_PIN_NWAIT GPIO_PIN_6
+
+#define FMC_NWAIT_IDLE GPIO_PIN_SET
+
extern void fmc_init(void);