Skip to content

Conversation

@psidhu
Copy link
Contributor

@psidhu psidhu commented Sep 6, 2018

If user wants to configure different pin drive strengths for STM32
soc's, configure the pin to be open-drain.

@psidhu psidhu requested a review from erwango as a code owner September 6, 2018 17:16
@erwango erwango added the platform: STM32 ST Micro STM32 label Sep 12, 2018
@erwango
Copy link
Member

erwango commented Sep 12, 2018

@psidhu , please get CI passed so we can start the review.

@psidhu psidhu force-pushed the pr-stm-gpio-drive-strengh branch from 9d66e8b to 448cc07 Compare October 3, 2018 16:33
If user wants to configure different pin drive strengths for STM32
soc's, configure the pin to be open-drain.

Signed-off-by: Pushpal Sidhu <[email protected]>
@psidhu psidhu force-pushed the pr-stm-gpio-drive-strengh branch from 448cc07 to 5f1d934 Compare October 3, 2018 17:12
@psidhu
Copy link
Contributor Author

psidhu commented Oct 3, 2018

@erwango done.

Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

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

One question (see comments) and one querry:
Since you're familiar with this piece of code now, can you factorize it into drivers/gpio/gpio_stm32.c (at least this function for now). I don't think there is a good reason to have this code duplicated across various stm32 series. Would be great. Thanks

if (direction == GPIO_DIR_OUT) {
*pincfg = *pincfg | STM32_MODER_OUTPUT_MODE;

if (ds_low == GPIO_DS_ALT_LOW ||
Copy link
Member

Choose a reason for hiding this comment

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

I missing something here.
Can you explain why DS_ALT_LOW is equivalent to DS_DISCONNECT_HIGH and not DISCONNECT_LOW here?

@psidhu psidhu mentioned this pull request Oct 8, 2018
@psidhu
Copy link
Contributor Author

psidhu commented Oct 8, 2018

@erwango I need to rework this patch anyways. Should we wait for the outcome of #10339 first?

@erwango
Copy link
Member

erwango commented Oct 8, 2018

@erwango I need to rework this patch anyways. Should we wait for the outcome of #10339 first?

Might be wiser indeed.

@psidhu
Copy link
Contributor Author

psidhu commented Apr 26, 2019

Closing this in lieu of #13190.

@psidhu psidhu closed this Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform: STM32 ST Micro STM32

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants