Skip to content

Commit

Permalink
remove SysTick_Config, add wolfBoot_success
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbland1 committed Aug 22, 2023
1 parent 245f5f4 commit 34b5636
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test-app/app_imx_rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,18 +131,17 @@ void main(void)
rt1050_init_pins();
#endif
SystemCoreClockUpdate();
init_debug_console();

PRINTF("wolfBoot Test app, version = %d\r\n",
wolfBoot_current_firmware_version());

if (wolfBoot_current_firmware_version() == 1) {
wolfBoot_update_trigger();
return;
} else {
wolfBoot_success();
}

SysTick_Config(SystemCoreClock / 1000U);
init_debug_console();

while (1) {
/* 100ms delay */
SDK_DelayAtLeastUs(100 * 1000, SDK_DEVICE_MAXIMUM_CPU_CLOCK_FREQUENCY);
Expand Down

0 comments on commit 34b5636

Please sign in to comment.