Rename api-hal to furi-hal (#629)
This commit is contained in:
@@ -411,7 +411,7 @@ int32_t dolphin_srv() {
|
||||
|
||||
furi_record_create("dolphin", dolphin);
|
||||
|
||||
if(!api_hal_version_do_i_belong_here()) {
|
||||
if(!furi_hal_version_do_i_belong_here()) {
|
||||
view_dispatcher_switch_to_view(dolphin->idle_view_dispatcher, DolphinViewHwMismatch);
|
||||
}
|
||||
|
||||
|
@@ -5,7 +5,7 @@
|
||||
#include "dolphin_views.h"
|
||||
|
||||
#include <furi.h>
|
||||
#include <api-hal.h>
|
||||
#include <furi-hal.h>
|
||||
#include <gui/gui.h>
|
||||
#include <gui/view_dispatcher.h>
|
||||
#include <gui/canvas.h>
|
||||
|
@@ -2,8 +2,8 @@
|
||||
#include <gui/view.h>
|
||||
#include <gui/gui.h>
|
||||
#include <gui/elements.h>
|
||||
#include <api-hal.h>
|
||||
#include <api-hal-version.h>
|
||||
#include <furi-hal.h>
|
||||
#include <furi-hal-version.h>
|
||||
|
||||
static char* Lockmenu_Items[3] = {"Lock", "Set PIN", "DUMB mode"};
|
||||
|
||||
@@ -14,7 +14,7 @@ void dolphin_view_first_start_draw(Canvas* canvas, void* model) {
|
||||
canvas_set_font(canvas, FontSecondary);
|
||||
uint8_t width = canvas_width(canvas);
|
||||
uint8_t height = canvas_height(canvas);
|
||||
const char* my_name = api_hal_version_get_name_ptr();
|
||||
const char* my_name = furi_hal_version_get_name_ptr();
|
||||
if(m->page == 0) {
|
||||
canvas_draw_icon(canvas, 0, height - 48, &I_DolphinFirstStart0_70x53);
|
||||
elements_multiline_text_framed(canvas, 75, 20, "Hey m8,\npress > to\ncontinue");
|
||||
@@ -119,20 +119,20 @@ void dolphin_view_idle_down_draw(Canvas* canvas, void* model) {
|
||||
|
||||
if(m->screen != DolphinViewStatsMeta) {
|
||||
// Hardware version
|
||||
const char* my_name = api_hal_version_get_name_ptr();
|
||||
const char* my_name = furi_hal_version_get_name_ptr();
|
||||
snprintf(
|
||||
buffer,
|
||||
sizeof(buffer),
|
||||
"HW: %d.F%dB%dC%d %s",
|
||||
api_hal_version_get_hw_version(),
|
||||
api_hal_version_get_hw_target(),
|
||||
api_hal_version_get_hw_body(),
|
||||
api_hal_version_get_hw_connect(),
|
||||
furi_hal_version_get_hw_version(),
|
||||
furi_hal_version_get_hw_target(),
|
||||
furi_hal_version_get_hw_body(),
|
||||
furi_hal_version_get_hw_connect(),
|
||||
my_name ? my_name : "Unknown");
|
||||
canvas_draw_str(canvas, 5, 23, buffer);
|
||||
|
||||
ver = m->screen == DolphinViewStatsBoot ? api_hal_version_get_boot_version() :
|
||||
api_hal_version_get_firmware_version();
|
||||
ver = m->screen == DolphinViewStatsBoot ? furi_hal_version_get_boot_version() :
|
||||
furi_hal_version_get_firmware_version();
|
||||
|
||||
if(!ver) {
|
||||
canvas_draw_str(canvas, 5, 33, "No info");
|
||||
@@ -178,7 +178,7 @@ void dolphin_view_hw_mismatch_draw(Canvas* canvas, void* model) {
|
||||
|
||||
char buffer[64];
|
||||
canvas_set_font(canvas, FontSecondary);
|
||||
snprintf(buffer, 64, "HW target: F%d", api_hal_version_get_hw_target());
|
||||
snprintf(buffer, 64, "HW target: F%d", furi_hal_version_get_hw_target());
|
||||
canvas_draw_str(canvas, 5, 27, buffer);
|
||||
canvas_draw_str(canvas, 5, 38, "FW target: " TARGET);
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#include <furi.h>
|
||||
#include <gui/gui.h>
|
||||
#include <api-hal-version.h>
|
||||
#include <furi-hal-version.h>
|
||||
#include "dolphin/dolphin.h"
|
||||
#include "dolphin/dolphin_state.h"
|
||||
#include "math.h"
|
||||
@@ -80,7 +80,7 @@ static void render_callback(Canvas* canvas, void* ctx) {
|
||||
canvas_draw_line(canvas, 59, 31, 124, 31);
|
||||
canvas_draw_line(canvas, 59, 44, 124, 44);
|
||||
|
||||
const char* my_name = api_hal_version_get_name_ptr();
|
||||
const char* my_name = furi_hal_version_get_name_ptr();
|
||||
canvas_draw_str(canvas, 59, 15, my_name ? my_name : "Unknown");
|
||||
|
||||
snprintf(level, 20, "Level: %ld", current_level);
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#include <furi.h>
|
||||
#include <api-hal.h>
|
||||
#include <furi-hal.h>
|
||||
#include "scene.h"
|
||||
|
||||
static SceneAppGui* scene_app_gui = NULL;
|
||||
@@ -109,7 +109,7 @@ void scene_free() {
|
||||
}
|
||||
|
||||
int32_t scene_app(void* p) {
|
||||
api_hal_power_insomnia_enter();
|
||||
furi_hal_power_insomnia_enter();
|
||||
scene_alloc();
|
||||
|
||||
osTimerStart(scene_app_gui->timer, 40);
|
||||
@@ -146,6 +146,6 @@ int32_t scene_app(void* p) {
|
||||
osDelay(15);
|
||||
|
||||
scene_free();
|
||||
api_hal_power_insomnia_exit();
|
||||
furi_hal_power_insomnia_exit();
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user