[FL-1884] GPIO application (#732)
* gpio: rename gpio application * bq25896: add reading OTG config * furi-hal-power: add is_otg_enabled API * gpio: introduce new GPIO app, add OTG enable / disable * variable-item-list: add enter callback * gpio: add output test view and scene * gpio app: fix GpioItemTester -> GpioItemTest Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -180,6 +180,10 @@ void furi_hal_power_disable_otg() {
|
||||
bq25896_disable_otg();
|
||||
}
|
||||
|
||||
bool furi_hal_power_is_otg_enabled() {
|
||||
return bq25896_is_otg_enabled();
|
||||
}
|
||||
|
||||
uint32_t furi_hal_power_get_battery_remaining_capacity() {
|
||||
return bq27220_get_remaining_capacity();
|
||||
}
|
||||
|
@@ -180,6 +180,10 @@ void furi_hal_power_disable_otg() {
|
||||
bq25896_disable_otg();
|
||||
}
|
||||
|
||||
bool furi_hal_power_is_otg_enabled() {
|
||||
return bq25896_is_otg_enabled();
|
||||
}
|
||||
|
||||
uint32_t furi_hal_power_get_battery_remaining_capacity() {
|
||||
return bq27220_get_remaining_capacity();
|
||||
}
|
||||
|
@@ -69,6 +69,9 @@ void furi_hal_power_enable_otg();
|
||||
/** OTG disable */
|
||||
void furi_hal_power_disable_otg();
|
||||
|
||||
/** Get OTG status */
|
||||
bool furi_hal_power_is_otg_enabled();
|
||||
|
||||
/** Get remaining battery battery capacity in mAh */
|
||||
uint32_t furi_hal_power_get_battery_remaining_capacity();
|
||||
|
||||
|
Reference in New Issue
Block a user