From 74080db314970b741cc5da8550728858fb761bef Mon Sep 17 00:00:00 2001 From: Bent Hillerkus <29630575+benthillerkus@users.noreply.github.com> Date: Mon, 22 Mar 2021 12:22:18 +0100 Subject: [PATCH] Include header and sync function definitions Closes https://github.com/espressif/esp-serial-flasher/pull/22 --- port/raspberry_port.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/port/raspberry_port.c b/port/raspberry_port.c index 90c5249..f8bce8a 100644 --- a/port/raspberry_port.c +++ b/port/raspberry_port.c @@ -16,6 +16,7 @@ #include "serial_io.h" #include "serial_comm.h" #include +#include "raspberry_port.h" #include #include @@ -207,7 +208,7 @@ static esp_loader_error_t read_data(char *buffer, uint32_t size) return ESP_LOADER_SUCCESS; } -esp_loader_error_t loader_port_raspberry_init(loader_raspberry_config_t *config) +esp_loader_error_t loader_port_raspberry_init(const loader_raspberry_config_t *config) { s_reset_trigger_pin = config->reset_trigger_pin; s_gpio0_trigger_pin = config->gpio0_trigger_pin;