Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stm32l1 allow open drain #4854

Closed
wants to merge 3 commits into from
Closed

Conversation

lebrush
Copy link
Member

@lebrush lebrush commented Feb 19, 2016

The current API configuration does not allow open-drain to be configured in the GPIOs. However, the i2c needs to be configured as open-drain otherwise the output is corrupted.

In the following image you can see the output of the pins with not configured as open-drain. This effect is also observed by others
stm32l1_opendrain

The patch just extends the behaviour and does not modify the existing one.

Victor Arino added 3 commits February 19, 2016 18:24
Some peripherals (e.g. i2c) must be configured in open drain.
Otherwise weird behaviour appears such as voltages half way up or
down. This adds support to configure Open-Drain GPIO from the
standard API.
Otherwise the voltages do not go all the way up or down.
@jnohlgard
Copy link
Member

See also: #4472 and #4750

@OlegHahm OlegHahm added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Area: drivers Area: Device drivers labels Feb 20, 2016
@haukepetersen haukepetersen added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Feb 20, 2016
@haukepetersen
Copy link
Contributor

I am working at a solution for #4472 as we speak (probably get it done today, but testing will take a while), so I would say we merge this first so at least the I2C for the l1 is fixed for now.

code looks valid -> untested ACK once Travis is green.

@lebrush
Copy link
Member Author

lebrush commented Feb 22, 2016

I didn't see there was discussion already about it. I like the agreed solution in #4472 is far way more elegant than this patch 👍 however, I added one comment: open drain pull down is also valid for stm32l1 (according to the user manual).

Feel free to merge this to fix the i2c (most of the changes will be replaced by your next PR). I tested it, but maybe someone can do a double check :-)

@OlegHahm OlegHahm added the Community: Hack'n'ACK candidate This PR is a candidate for review and discussion during one of RIOT's monthly Hack'n'ACK parties label Feb 28, 2016
@miri64
Copy link
Member

miri64 commented Mar 4, 2016

@haukepetersen ready to merge?

@haukepetersen
Copy link
Contributor

nope, I would actually tend to close this in favor of #4862

@miri64 miri64 removed the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Mar 4, 2016
@miri64
Copy link
Member

miri64 commented Mar 16, 2016

Then I do so.

@miri64 miri64 closed this Mar 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: drivers Area: Device drivers Community: Hack'n'ACK candidate This PR is a candidate for review and discussion during one of RIOT's monthly Hack'n'ACK parties Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants