Skip to content

Commit 871ec3e

Browse files
committed
fix a few compile errors
1 parent 11e70af commit 871ec3e

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.vscode/settings.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"gyro_init.h": "c",
99
"board_init.h": "c",
1010
"fix16.h": "c",
11-
"hal_gpio_init.h": "c"
11+
"hal_gpio_init.h": "c",
12+
"flash.h": "c",
13+
"spi_init.h": "c"
1214
}
1315
}

src/bootloader/bootloader.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
#include "boothandler.h"
33
#include "bootloader_commands.h"
44
#include "hal_gpio_init.h"
5+
#include "spi_init.h"
6+
#include "board_comm_init.h"
57
#include "flash.h"
6-
#include "report.h"
8+
//#include "report.h"
79

810

911
char txBuffer[256];
@@ -57,7 +59,7 @@ void run_command(bootloaderCommand_t* bl_command)
5759
void bootloader_start(void)
5860
{
5961
bootloaderCommand = BL_NONE;
60-
hal_gpio_init(BOOTLOADER_CHECK_PORT, BOOTLOADER_CHECK_PIN, GPIO_MODE_INPUT, GPIO_PULLDOWN, 0);
62+
hal_gpio_init_pin(BOOTLOADER_CHECK_PORT, BOOTLOADER_CHECK_PIN, GPIO_MODE_INPUT, GPIO_PULLDOWN, 0);
6163
HAL_Delay(500);
6264
if (HAL_GPIO_ReadPin(BOOTLOADER_CHECK_PORT, BOOTLOADER_CHECK_PIN) == (uint32_t)GPIO_PIN_RESET)
6365
{

src/includes.h

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include <stdio.h>
44
#include <stdint.h>
5+
#include <string.h>
56
#include "target/default.h"
67
#include "stm32f3xx.h"
78
#include "stm32f3xx_hal_conf.h"

0 commit comments

Comments
 (0)