summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Naik2020-06-10 15:19:22 -0400
committerAditya Naik2020-06-10 15:19:22 -0400
commitc67e5c72e59dbe0688ff7c937696a221d0089d7a (patch)
tree4bd0dbce1eee9fb4c11b2dec83dfb511b0f8c309
parentab6f8af31993a882adeeaefb83f00f607c16d9ee (diff)
Moved all F4-specific files to the HAL port directory
-rw-r--r--ports/stm32f4/makefile7
-rw-r--r--ports/stm32f4/src/port.h7
-rw-r--r--ports/stm32f4/src/stm32f4xx_hal_conf.h (renamed from src/stm32f4xx_hal_conf.h)0
-rw-r--r--ports/stm32f4/src/stm32f4xx_hal_msp.c (renamed from src/stm32f4xx_hal_msp.c)0
-rw-r--r--ports/stm32f4/src/stm32f4xx_it.c (renamed from src/stm32f4xx_it.c)0
-rw-r--r--ports/stm32f4/src/stm32f4xx_it.h (renamed from src/stm32f4xx_it.h)0
-rw-r--r--ports/stm32f4/src/system_stm32f4xx.c (renamed from src/system_stm32f4xx.c)0
-rw-r--r--src/main.h2
8 files changed, 12 insertions, 4 deletions
diff --git a/ports/stm32f4/makefile b/ports/stm32f4/makefile
index 5a32ead..c3701b9 100644
--- a/ports/stm32f4/makefile
+++ b/ports/stm32f4/makefile
@@ -31,11 +31,12 @@ lib/f4/stm32f4xx_hal_exti.c \
lib/f4/stm32f4xx_hal_tim.c \
lib/f4/stm32f4xx_hal_tim_ex.c \
lib/f4/stm32f4xx_hal_uart.c \
-src/stm32f4xx_it.c \
-src/stm32f4xx_hal_msp.c \
-src/system_stm32f4xx.c \
+ports/stm32f4/src/stm32f4xx_it.c \
+ports/stm32f4/src/stm32f4xx_hal_msp.c \
+ports/stm32f4/src/system_stm32f4xx.c \
C_INCLUDES += \
-Ilib/f4 \
-Ilib/f4/Legacy \
-Ilib/cmsis/f4 \
+-Iports/stm32f4/src
diff --git a/ports/stm32f4/src/port.h b/ports/stm32f4/src/port.h
new file mode 100644
index 0000000..5007dee
--- /dev/null
+++ b/ports/stm32f4/src/port.h
@@ -0,0 +1,7 @@
+/**
+ *
+ * @brief Port specific includes go in this file
+ *
+*/
+
+#include "stm32f4xx_hal.h"
diff --git a/src/stm32f4xx_hal_conf.h b/ports/stm32f4/src/stm32f4xx_hal_conf.h
index e7e342a..e7e342a 100644
--- a/src/stm32f4xx_hal_conf.h
+++ b/ports/stm32f4/src/stm32f4xx_hal_conf.h
diff --git a/src/stm32f4xx_hal_msp.c b/ports/stm32f4/src/stm32f4xx_hal_msp.c
index d19bcec..d19bcec 100644
--- a/src/stm32f4xx_hal_msp.c
+++ b/ports/stm32f4/src/stm32f4xx_hal_msp.c
diff --git a/src/stm32f4xx_it.c b/ports/stm32f4/src/stm32f4xx_it.c
index caabfb4..caabfb4 100644
--- a/src/stm32f4xx_it.c
+++ b/ports/stm32f4/src/stm32f4xx_it.c
diff --git a/src/stm32f4xx_it.h b/ports/stm32f4/src/stm32f4xx_it.h
index 0f787d0..0f787d0 100644
--- a/src/stm32f4xx_it.h
+++ b/ports/stm32f4/src/stm32f4xx_it.h
diff --git a/src/system_stm32f4xx.c b/ports/stm32f4/src/system_stm32f4xx.c
index 7745026..7745026 100644
--- a/src/system_stm32f4xx.c
+++ b/ports/stm32f4/src/system_stm32f4xx.c
diff --git a/src/main.h b/src/main.h
index 5d4be41..6579484 100644
--- a/src/main.h
+++ b/src/main.h
@@ -28,7 +28,7 @@ extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
-#include "stm32f4xx_hal.h"
+#include "port.h"
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */