aboutsummaryrefslogtreecommitdiff
path: root/include/stm-fmc.h
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2015-10-26 15:18:58 -0400
committerPaul Selkirk <paul@psgd.org>2015-10-26 15:18:58 -0400
commit26f12903dab2fafeaaefb02349763618ce96d070 (patch)
treeb37cceea7014770ea2ae039928e57b6f02c0aaa2 /include/stm-fmc.h
Based on user/ft/stm32-dev-bridge, without the project-specific build
directories (and duplicated code).
Diffstat (limited to 'include/stm-fmc.h')
-rw-r--r--include/stm-fmc.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/stm-fmc.h b/include/stm-fmc.h
new file mode 100644
index 0000000..196d65e
--- /dev/null
+++ b/include/stm-fmc.h
@@ -0,0 +1,23 @@
+//------------------------------------------------------------------------------
+// stm-fmc.h
+//------------------------------------------------------------------------------
+
+
+//------------------------------------------------------------------------------
+// Headers
+//------------------------------------------------------------------------------
+#include "stm32f4xx_hal.h"
+
+
+//------------------------------------------------------------------------------
+// Prototypes
+//------------------------------------------------------------------------------
+void fmc_init(void);
+
+int fmc_write_32(uint32_t addr, uint32_t *data);
+int fmc_read_32(uint32_t addr, uint32_t *data);
+
+
+//------------------------------------------------------------------------------
+// EOF
+//------------------------------------------------------------------------------