This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BQ27542-G1: 怎么把linux内核中关于hdq8协议相关的内容移植到单片机上

Part Number: BQ27542-G1

1、在官方提供的drivers/power/supply/bq27xxx_battery_hdq.c程序中提到的#include <linux/w1.h>,文件w1.h去哪里找啊,因为我使用的不是linux,需要把文件w1.h中的hdq8相关的协议移植出来,但是找不到这个文件,谢谢

这是官网中提供的源文件,没有找到w1.h文件

2、另一个问题是假如移植完毕,例程是关于bq27000的,我需要配置什么才能和bq27542进行通信?

3、例程中只有读函数,写函数有源文件吗?