aboutsummaryrefslogtreecommitdiff
path: root/projects/bootloader/stm-init.c
diff options
context:
space:
mode:
Diffstat (limited to 'projects/bootloader/stm-init.c')
-rw-r--r--projects/bootloader/stm-init.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/projects/bootloader/stm-init.c b/projects/bootloader/stm-init.c
new file mode 100644
index 0000000..209dc8c
--- /dev/null
+++ b/projects/bootloader/stm-init.c
@@ -0,0 +1,8 @@
+/* Disable modules that the bootloader doesn't need. */
+
+#include "stm32f4xx_hal.h"
+
+#undef HAL_I2C_MODULE_ENABLED
+#undef HAL_SPI_MODULE_ENABLED
+
+#include "../../stm-init.c"