|
@@ -18,6 +18,10 @@
|
|
|
#include <stdint.h>
|
|
#include <stdint.h>
|
|
|
#include "serial_io.h"
|
|
#include "serial_io.h"
|
|
|
|
|
|
|
|
|
|
+#ifdef __cplusplus
|
|
|
|
|
+extern "C" {
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
typedef struct {
|
|
typedef struct {
|
|
|
const char *device;
|
|
const char *device;
|
|
|
uint32_t baudrate;
|
|
uint32_t baudrate;
|
|
@@ -25,4 +29,8 @@ typedef struct {
|
|
|
uint32_t gpio0_trigger_pin;
|
|
uint32_t gpio0_trigger_pin;
|
|
|
} loader_raspberry_config_t;
|
|
} loader_raspberry_config_t;
|
|
|
|
|
|
|
|
-esp_loader_error_t loader_port_raspberry_init(const loader_raspberry_config_t *config);
|
|
|
|
|
|
|
+esp_loader_error_t loader_port_raspberry_init(const loader_raspberry_config_t *config);
|
|
|
|
|
+
|
|
|
|
|
+#ifdef __cplusplus
|
|
|
|
|
+}
|
|
|
|
|
+#endif
|