Rename api-hal to furi-hal (#629)
This commit is contained in:
@@ -183,12 +183,12 @@ void KeyReader::switch_mode_if_needed() {
|
||||
}
|
||||
|
||||
void KeyReader::start() {
|
||||
api_hal_power_enable_otg();
|
||||
furi_hal_power_enable_otg();
|
||||
switch_to(ReadMode::CYFRAL_METAKOM);
|
||||
}
|
||||
|
||||
void KeyReader::stop() {
|
||||
api_hal_power_disable_otg();
|
||||
furi_hal_power_disable_otg();
|
||||
onewire_master->stop();
|
||||
stop_comaparator();
|
||||
}
|
||||
|
@@ -14,12 +14,12 @@ KeyWriter::Error KeyWriter::write(iButtonKey* key) {
|
||||
}
|
||||
|
||||
void KeyWriter::start() {
|
||||
api_hal_power_enable_otg();
|
||||
furi_hal_power_enable_otg();
|
||||
onewire_master->start();
|
||||
}
|
||||
|
||||
void KeyWriter::stop() {
|
||||
api_hal_power_disable_otg();
|
||||
furi_hal_power_disable_otg();
|
||||
onewire_master->stop();
|
||||
}
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#include "pulse-sequencer.h"
|
||||
#include <furi.h>
|
||||
#include <callback-connector.h>
|
||||
#include <api-hal-resources.h>
|
||||
#include <furi-hal-resources.h>
|
||||
|
||||
void PulseSequencer::set_periods(
|
||||
uint32_t* _periods,
|
||||
|
@@ -38,7 +38,7 @@ void iButtonApp::run(void* args) {
|
||||
|
||||
iButtonApp::iButtonApp()
|
||||
: notification{"notification"} {
|
||||
api_hal_power_insomnia_enter();
|
||||
furi_hal_power_insomnia_enter();
|
||||
key_worker = new KeyWorker(&ibutton_gpio);
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ iButtonApp::~iButtonApp() {
|
||||
}
|
||||
delete key_worker;
|
||||
|
||||
api_hal_power_insomnia_exit();
|
||||
furi_hal_power_insomnia_exit();
|
||||
}
|
||||
|
||||
iButtonAppViewManager* iButtonApp::get_view_manager() {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#include <furi.h>
|
||||
#include <api-hal.h>
|
||||
#include <furi-hal.h>
|
||||
#include <stdarg.h>
|
||||
#include <cli/cli.h>
|
||||
#include <lib/toolbox/args.h>
|
||||
|
Reference in New Issue
Block a user