Lm75 test example build issue

Hello everyone, I try to build tests/driver_lm75, and I am facing following error :

tests/driver_lm75/main.c:26:10: fatal error: lm75_regs.h: No such file or directory

I tried to modify the Makefile from :

DRIVER ?= tmp1015

to :

DRIVER ?= lm75 or DRIVER ?= lm75a

No luck with both cases.

What am I missing? Thank you for your help. Regards

Sorry for the delayed response

I cannot find anything that says we support the tmp1015, maybe that can be added but I didn’t look to much into it.

The following works for me:

  • DRIVER=tmp1075 make all -C tests/driver_lm75
  • DRIVER=lm75a make all -C tests/driver_lm75

It appears that DRIVER=lm75 make all -C tests/driver_lm75 is missing the parameters in drivers/lm75/include/lm75_params.h.

One could theoretically add a lm75 set of parameters or maybe even tmp1015 though.

If you would like to give it a try, open a PR (doesn’t need to work, just something to start) and ping me and I can help guide you.

Should be pretty straightforward, you probably only have to add a device ID check and maybe device specific parameters.

But AFAIU they all should be backwards compatible with lm75, so if you need none of the advanced features, that should work.