Skip to content

stm32h7: fix config conflict - #11306

Merged
xiaoxiang781216 merged 1 commit into
apache:masterfrom
0528Mike:stm32h7
Dec 6, 2023
Merged

xiaoxiang781216 merged 1 commit into
apache:masterfrom
0528Mike:stm32h7

Conversation

@0528Mike

@0528Mike 0528Mike commented Dec 2, 2023 •

Copy link
Copy Markdown

Summary

fix config conflict
#if defined(CONFIG_NSH_LIBRARY) && !defined(CONFIG_BOARDCTL)

Impact

No Impact

Testing

None

@0528Mike 0528Mike changed the title stm32h7: gpio add interrupt exti config stm32h7: modify stm32h7 boards Dec 2, 2023

@raiden00pl raiden00pl left a comment •

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.

What is the motivation for this change? GPIO encoding is intended to be handled by logic in arch/arm/src/stm32h7/stm32_gpio.c.
With this change, some of the pin configuration must be handled by the board logic, some by the arch logic. This introduces unnecessary complications. In my opinion this is a bad change.
Additionally, we introduce incompatibility with other STM32 families.

@0528Mike 0528Mike changed the title stm32h7: modify stm32h7 boards stm32h7: fix config conflict Dec 3, 2023
@0528Mike

0528Mike commented Dec 3, 2023

Copy link
Copy Markdown
Author

defined(CONFIG_NSH_LIBRARY) and !defined(CONFIG_BOARDCTL) is conflict,does this need to be modified?

@0528Mike 0528Mike closed this Dec 3, 2023
@0528Mike 0528Mike reopened this Dec 3, 2023
@raiden00pl

Copy link
Copy Markdown
Member

defined(CONFIG_NSH_LIBRARY) and !defined(CONFIG_BOARDCTL) is conflict,does this need to be modified?

this change looks good

@acassis

acassis commented Dec 3, 2023

Copy link
Copy Markdown
Contributor

@0528Mike @raiden00pl I think we could remove CONFIG_NSH_ARCHINIT all together, since CONFIG_BOARD_LATE_INITIALIZE could be used as a generic alternative. What do you think?

@0528Mike

0528Mike commented Dec 3, 2023

Copy link
Copy Markdown
Author

@0528Mike @raiden00pl I think we could remove CONFIG_NSH_ARCHINIT all together, since CONFIG_BOARD_LATE_INITIALIZE could be used as a generic alternative. What do you think?

This idea is great, and I support it

@raiden00pl

Copy link
Copy Markdown
Member

@0528Mike @raiden00pl I think we could remove CONFIG_NSH_ARCHINIT all together, since CONFIG_BOARD_LATE_INITIALIZE could be used as a generic alternative. What do you think?

this seems like a good idea, but we have to wonder if this won't break something. This change would be quite big (update apps and all boards with CONFIG_NSH_ARCHINIT). @acassis maybe you can create an issue about this? so that the problem is more visible and more people can comment.

@acassis

acassis commented Dec 4, 2023

Copy link
Copy Markdown
Contributor

@0528Mike @raiden00pl I think we could remove CONFIG_NSH_ARCHINIT all together, since CONFIG_BOARD_LATE_INITIALIZE could be used as a generic alternative. What do you think?

this seems like a good idea, but we have to wonder if this won't break something. This change would be quite big (update apps and all boards with CONFIG_NSH_ARCHINIT). @acassis maybe you can create an issue about this? so that the problem is more visible and more people can comment.

I think I already did it, let me check

@acassis

acassis commented Dec 4, 2023

Copy link
Copy Markdown
Contributor

Actually I only commented about it in the issue #10821

@xiaoxiang781216

Copy link
Copy Markdown
Contributor

@raiden00pl can we merge this patch now?

@raiden00pl

Copy link
Copy Markdown
Member

if defined(CONFIG_NSH_LIBRARY) && !defined(CONFIG_BOARDCTL) conflict

Signed-off-by: wangmingrong <[email protected]>
@xiaoxiang781216
xiaoxiang781216 merged commit 02936df into apache:master Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants