aboutsummaryrefslogtreecommitdiff
path: root/stm-fmc.c
diff options
context:
space:
mode:
authorFredrik Thulin <fredrik@thulin.net>2016-05-13 14:36:41 +0200
committerFredrik Thulin <fredrik@thulin.net>2016-05-14 16:07:01 +0200
commit34e2db12555852bbc062ed11073bf35330f3bf9f (patch)
tree997d6d59df6e4ca71f268c1dda7394010153bc98 /stm-fmc.c
parent9bbc0727f6cc9a527b5853dded05e39f1eb36b29 (diff)
update FMC test for alpha
Diffstat (limited to 'stm-fmc.c')
-rw-r--r--stm-fmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stm-fmc.c b/stm-fmc.c
index 3b36cbf..eca4b38 100644
--- a/stm-fmc.c
+++ b/stm-fmc.c
@@ -44,7 +44,7 @@
// Defined Values
//------------------------------------------------------------------------------
#define FMC_FPGA_BASE_ADDR 0x60000000
-#define FMC_FPGA_ADDR_MASK 0x00FFFFFC
+#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
@@ -213,7 +213,7 @@ static void _fmc_init_gpio(void)
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
// Port E
- GPIO_InitStruct.Pin = GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_7
+ GPIO_InitStruct.Pin = GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7
|GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10|GPIO_PIN_11
|GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;