Skip to content

drivers: add support for lps25h#7267

Closed
aabadie wants to merge 14 commits intoRIOT-OS:masterfrom
aabadie:lps25h
Closed

drivers: add support for lps25h#7267
aabadie wants to merge 14 commits intoRIOT-OS:masterfrom
aabadie:lps25h

Conversation

@aabadie
Copy link
Copy Markdown
Contributor

@aabadie aabadie commented Jun 28, 2017

This is an update of #4257 that proposed a driver for a temperature and pressure sensor.

I started the actual state there and added some cleanup and support for saul.

Tested with my ST MEMs module but it doesn't seem to work. Maybe @ReneHerthel or @vincent-d have an idea ?
(it returns 0 hPa and 42°C all time)

@aabadie aabadie added Area: drivers Area: Device drivers CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable labels Jun 28, 2017
@aabadie aabadie added this to the Release 2017.10 milestone Jun 28, 2017
@aabadie aabadie added the State: WIP State: The PR is still work-in-progress and its code is not in its final presentable form yet label Jun 28, 2017
@vincent-d
Copy link
Copy Markdown
Member

I only have a LPS22HB (on a x-nucleo-iks01a2), not sure if it's the same.

@aabadie
Copy link
Copy Markdown
Contributor Author

aabadie commented Jun 28, 2017

I only have a LPS22HB (on a x-nucleo-iks01a2), not sure if it's the same.

Maybe we can unify the driver (using pseudomodules and a generic implementation)

@vincent-d
Copy link
Copy Markdown
Member

They look quite different unfortunately...

@aabadie
Copy link
Copy Markdown
Contributor Author

aabadie commented Jun 28, 2017

They look quite different unfortunately...

I'll see if I can fix this one but it won't be in the july release. Will close #4257.

@smlng smlng removed this from the Release 2018.01 milestone Jan 12, 2018
@jnohlgard jnohlgard added the Area: SAUL Area: Sensor/Actuator Uber Layer label Feb 19, 2018
@tcschmidt tcschmidt requested a review from A-Paul June 2, 2018 00:42
@A-Paul
Copy link
Copy Markdown
Member

A-Paul commented Jun 7, 2018

I don't have lps25h, so I can only review the code. If someone could provide me with a sensor I might try to debug the readout value issue.

Copy link
Copy Markdown
Member

@A-Paul A-Paul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initially stumbled into a build error. See code comment.

i2c_read_regs(LPS25H_BUS, LPS25H_ADDR, LPS25H_REG_PRESS_OUT_XL, &tmp[0], 3);
i2c_release(LPS25H_BUS);

val = (tmp[2] << 16) | (tmp[1] << 8) | tmp[0];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the atmega 8-bit platform this results in compile error from avr-gcc . The << 16 is illegal because it i equal or greater than the register size.

@aabadie
Copy link
Copy Markdown
Contributor Author

aabadie commented Jun 7, 2018

Thanks for raising up this one. I haven't tested it for a while. Will try to rework it in the coming weeks.

@PeterKietzmann
Copy link
Copy Markdown
Member

Closing in favor of #10695

@aabadie
Copy link
Copy Markdown
Contributor Author

aabadie commented Mar 5, 2019

Closing was not needed here because it would have been closed automatically when #10695 is merged.

@PeterKietzmann
Copy link
Copy Markdown
Member

Since when do we keep duplicates open on purpose?

@aabadie aabadie deleted the lps25h branch July 4, 2019 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: drivers Area: Device drivers Area: SAUL Area: Sensor/Actuator Uber Layer CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable State: WIP State: The PR is still work-in-progress and its code is not in its final presentable form yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants