mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-30 16:29:12 +00:00
917410a0a8
* fbt: reworking targets & assets handling WIP * fbt: dist fixes * fbt: moved SD card resources to owning apps * unit_tests: moved resources to app folder * github: updated unit_tests paths * github: packaging fixes * unit_tests: fixes * fbt: assets: internal cleanup * fbt: reworked assets handling * github: unit_tests: reintroducing fixes * minor cleanup * fbt: naming changes to reflect private nature of scons tools * fbt: resources: fixed dist archive paths * docs: updated paths * docs: updated more paths * docs: included "resources" parameter in app manifest docs; updated assets readme * updated gitignore for assets * github: updated action versions * unit_tests: restored timeout; scripts: assets: logging changes * gh: don't upload desktop animations for unit test run Co-authored-by: あく <alleteam@gmail.com>
149 lines
4 KiB
C
149 lines
4 KiB
C
#include <bq27220_data_memory.h>
|
|
|
|
const BQ27220DMGaugingConfig furi_hal_power_gauge_data_memory_gauging_config = {
|
|
.CCT = 1,
|
|
.CSYNC = 0,
|
|
.EDV_CMP = 0,
|
|
.SC = 1,
|
|
.FIXED_EDV0 = 1,
|
|
.FCC_LIM = 1,
|
|
.FC_FOR_VDQ = 1,
|
|
.IGNORE_SD = 1,
|
|
.SME0 = 0,
|
|
};
|
|
|
|
const BQ27220DMData furi_hal_power_gauge_data_memory[] = {
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1GaugingConfig,
|
|
.type = BQ27220DMTypePtr16,
|
|
.value.u32 = (uint32_t)&furi_hal_power_gauge_data_memory_gauging_config,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1FullChargeCapacity,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 2100,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1DesignCapacity,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 2100,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1EMF,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 3679,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1C0,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 430,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1R0,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 334,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1T0,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 4626,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1R1,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 408,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1TC,
|
|
.type = BQ27220DMTypeU8,
|
|
.value.u8 = 11,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1C1,
|
|
.type = BQ27220DMTypeU8,
|
|
.value.u8 = 0,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1StartDOD0,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 4044,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1StartDOD10,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 3905,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1StartDOD20,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 3807,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1StartDOD30,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 3718,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1StartDOD40,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 3642,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1StartDOD50,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 3585,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1StartDOD60,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 3546,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1StartDOD70,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 3514,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1StartDOD80,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 3477,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1StartDOD90,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 3411,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1StartDOD100,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 3299,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1EDV0,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 3300,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1EDV1,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 3321,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressGasGaugingCEDVProfile1EDV2,
|
|
.type = BQ27220DMTypeU16,
|
|
.value.u16 = 3355,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressCalibrationCurrentDeadband,
|
|
.type = BQ27220DMTypeU8,
|
|
.value.u8 = 1,
|
|
},
|
|
{
|
|
.address = BQ27220DMAddressConfigurationPowerSleepCurrent,
|
|
.type = BQ27220DMTypeI16,
|
|
.value.i16 = 1,
|
|
},
|
|
{
|
|
.type = BQ27220DMTypeEnd,
|
|
},
|
|
};
|