File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed
Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 2020#if MCUBOOT_APPLICATION_HOOKS && MCUBOOT_APPLICATION_DFU
2121
2222/* Includes ------------------------------------------------------------------ */
23- #include "target_init .h"
23+ #include "target .h"
2424
2525/* Private typedef ----------------------------------------------------------- */
2626/* Private define ------------------------------------------------------------ */
Original file line number Diff line number Diff line change 2323#include " usbd_dfu_flash.h"
2424// #include "option_bits.h"
2525#include " mbed.h"
26- #include " target_init .h"
26+ #include " target .h"
2727#include " QSPIFBlockDevice.h"
2828#include " FlashSimBlockDevice.h"
2929#include " flash_map_backend/secondary_bd.h"
Original file line number Diff line number Diff line change 1919#if MCUBOOT_APPLICATION_HOOKS
2020
2121#include " mbed.h"
22- #include " target_init .h"
22+ #include " target .h"
2323#include " ota.h"
2424#include " rtc.h"
2525#include " bootutil/bootutil_log.h"
@@ -295,7 +295,7 @@ extern "C" {
295295 uint8_t SetSysClock_PLL_HSE (uint8_t bypass, bool lowspeed);
296296}
297297
298- void envie_loop (void ) {
298+ int target_loop (void ) {
299299 RTCSetBKPRegister (RTC_BKP_DR0, 0 );
300300
301301 SetSysClock_PLL_HSE (1 , false );
@@ -339,6 +339,8 @@ void envie_loop(void) {
339339#endif
340340 LED_pulse (&green);
341341 }
342+
343+ return 0 ;
342344}
343345
344346#endif
Original file line number Diff line number Diff line change 7272#endif
7373
7474int target_init (void );
75- void envie_loop (void );
75+ int target_loop (void );
7676
7777#endif /* __TARGET_INIT_H */
You can’t perform that action at this time.
0 commit comments