Furi: core refactoring and CMSIS removal part 2 (#1410)
* Furi: rename and move core * Furi: drop CMSIS_OS header and unused api, partially refactor and cleanup the rest * Furi: CMSIS_OS drop and refactoring. * Furi: refactoring, remove cmsis legacy * Furi: fix incorrect assert on queue deallocation, cleanup timer * Furi: improve delay api, get rid of floats * hal: dropped furi_hal_crc * Furi: move DWT based delay to cortex HAL * Furi: update core documentation Co-authored-by: hedger <hedger@nanode.su>
This commit is contained in:
@@ -29,7 +29,7 @@ static void updater_cli_install(string_t manifest_path) {
|
||||
return;
|
||||
}
|
||||
printf("OK.\r\nRestarting to apply update. BRB\r\n");
|
||||
osDelay(100);
|
||||
furi_delay_ms(100);
|
||||
furi_hal_power_reset();
|
||||
}
|
||||
|
||||
@@ -134,4 +134,4 @@ void updater_on_system_start() {
|
||||
#else
|
||||
UNUSED(updater_start_app);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@@ -197,7 +197,7 @@ static void update_task_worker_thread_cb(FuriThreadState state, void* context) {
|
||||
}
|
||||
|
||||
if(furi_thread_get_return_code(update_task->thread) == UPDATE_TASK_NOERR) {
|
||||
osDelay(UPDATE_DELAY_OPERATION_OK);
|
||||
furi_delay_ms(UPDATE_DELAY_OPERATION_OK);
|
||||
furi_hal_power_reset();
|
||||
}
|
||||
}
|
||||
|
@@ -130,7 +130,7 @@ static bool update_task_write_stack_data(UpdateTask* update_task) {
|
||||
|
||||
static void update_task_wait_for_restart(UpdateTask* update_task) {
|
||||
update_task_set_progress(update_task, UpdateTaskStageRadioBusy, 10);
|
||||
osDelay(C2_MODE_SWITCH_TIMEOUT);
|
||||
furi_delay_ms(C2_MODE_SWITCH_TIMEOUT);
|
||||
furi_crash("C2 timeout");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user