mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-27 01:58:09 -07:00
Merge remote-tracking branch 'kiisu/kiisudev' into kiisu-mntm
This commit is contained in:
@@ -130,9 +130,9 @@ void furi_hal_i2c_bus_handle_external_event(
|
||||
FuriHalI2cBusHandleEvent event) {
|
||||
if(event == FuriHalI2cBusHandleEventActivate) {
|
||||
furi_hal_gpio_init_ex(
|
||||
&gpio_ext_pc0, GpioModeAltFunctionOpenDrain, GpioPullNo, GpioSpeedLow, GpioAltFn4I2C3);
|
||||
&gpio_ext_pc0, GpioModeAltFunctionOpenDrain, GpioPullUp, GpioSpeedLow, GpioAltFn4I2C3);
|
||||
furi_hal_gpio_init_ex(
|
||||
&gpio_ext_pc1, GpioModeAltFunctionOpenDrain, GpioPullNo, GpioSpeedLow, GpioAltFn4I2C3);
|
||||
&gpio_ext_pc1, GpioModeAltFunctionOpenDrain, GpioPullUp, GpioSpeedLow, GpioAltFn4I2C3);
|
||||
|
||||
LL_I2C_InitTypeDef I2C_InitStruct;
|
||||
I2C_InitStruct.PeripheralMode = LL_I2C_MODE_I2C;
|
||||
|
||||
@@ -71,7 +71,7 @@ void furi_hal_power_init(void) {
|
||||
|
||||
furi_hal_i2c_acquire(&furi_hal_i2c_handle_power);
|
||||
// Find and init gauge
|
||||
size_t retry = 0;
|
||||
size_t retry = 2;
|
||||
while(retry > 0) {
|
||||
furi_hal_power.gauge_ok =
|
||||
bq27220_init(&furi_hal_i2c_handle_power, furi_hal_power_gauge_data_memory);
|
||||
@@ -85,7 +85,7 @@ void furi_hal_power_init(void) {
|
||||
retry--;
|
||||
}
|
||||
// Find and init charger
|
||||
retry = 0;
|
||||
retry = 2;
|
||||
while(retry > 0) {
|
||||
furi_hal_power.charger_ok = bq25896_init(&furi_hal_i2c_handle_power);
|
||||
if(furi_hal_power.charger_ok) {
|
||||
|
||||
@@ -5,11 +5,11 @@ bool furi_hal_version_do_i_belong_here(void) {
|
||||
}
|
||||
|
||||
const char* furi_hal_version_get_model_name(void) {
|
||||
return "Kiisu 4a";
|
||||
return "Kiisu 4";
|
||||
}
|
||||
|
||||
const char* furi_hal_version_get_model_code(void) {
|
||||
return "K4.A";
|
||||
return "K4.AB";
|
||||
}
|
||||
|
||||
const char* furi_hal_version_get_fcc_id(void) {
|
||||
|
||||
Reference in New Issue
Block a user