Skip to content

Commit

Permalink
Move host_init_bootloader declaration into header
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Jan 25, 2022
1 parent 282c039 commit 9be7fdc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sming/Arch/Host/Components/hostlib/startup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "threads.h"
#include "except.h"
#include "options.h"
#include <host_rboot.h>
#include <spi_flash/flashmem.h>
#include <driver/uart_server.h>
#include <BitManipulations.h>
Expand Down Expand Up @@ -254,7 +255,6 @@ int main(int argc, char* argv[])
return 1;
}

extern void host_init_bootloader();
host_init_bootloader();

atexit(cleanup);
Expand Down
13 changes: 13 additions & 0 deletions Sming/Components/rboot/include/host_rboot.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/****
* Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
* Created 2015 by Skurydin Alexey
* http://github.com/SmingHub/Sming
* All files of the Sming Core are provided under the LGPL v3 license.
*
* host_rboot.h
*
****/

#pragma once

void host_init_bootloader();

0 comments on commit 9be7fdc

Please sign in to comment.