Closed Ananyaaynana closed 6 months ago
The bq76952 driver source code can be found in this folder: https://github.com/LibreSolar/bms-firmware/tree/main/drivers%2Fbms_ic%2Fbq769x2
See the Zephyr driver model for further information regarding driver development.
Thank you.
We want to add the following recovery features to the firmware: Short circuit recovery, discharge overcurrent recovery and charge overcurrent recovery. `
In the firmware to set these values the API
static inline int bms_ic_configure(const struct device *dev, struct bms_ic_conf *ic_conf, uint32_t flags)
is called.After adding these recovery modifications to the
struct bms_ic_conf
structure theconfigure(dev, ic_conf, flags)
will apply the changes to the appropriate register address indicated by theBMS_IC_CONF_CURRENT_LIMITS
flag. Is my understanding correct?The source code for the
configure(dev, ic_conf, flags)
, I am not able to find it.I can share the code for the recovery modifications added to this commit: https://github.com/LibreSolar/bms-firmware/tree/cb89c75b74e85a036b7c6243424e31c68b3b3018 written for the 0.3v BMS code.
Please let me know where to access the
configure(dev, ic_conf, flags)
source code to add the recovery modifications to the firmware.