max17050: Be explicit about hardcoded calculations

This commit is contained in:
CTCaer
2020-11-26 01:44:04 +02:00
parent b1c09f8a9c
commit 095b234fce
2 changed files with 15 additions and 10 deletions

View File

@@ -25,8 +25,11 @@
#include <utils/types.h>
#define MAX17050_STATUS_BattAbsent BIT(3)
#define MAX17050_DEFAULT_SNS_RESISTOR 10000
/* Board default values */
#define MAX17050_BOARD_CGAIN 2 /* Actual: 1.99993 */
#define MAX17050_BOARD_SNS_RESISTOR_UOHM 5000 /* 0.005 Ohm */
#define MAX17050_STATUS_BattAbsent BIT(3)
/* Consider RepCap which is less then 10 units below FullCAP full */
#define MAX17050_FULL_THRESHOLD 10