Skip to content

Conversation

@Archerist
Copy link

Zephyr MEMC drivers use these macros and they are missing in the LL_FSMC header, so i added them here.

cc @mathieuchopstm

Signed-off-by: Yunus Çemberci <[email protected]>
Copy link
Collaborator

@mathieuchopstm mathieuchopstm left a comment

Choose a reason for hiding this comment

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

Please also update the following to depend on CONFIG_USE_STM32_LL_FMC:

zephyr_library_sources_ifdef(CONFIG_USE_STM32_LL_FSMC drivers/src/stm32f4xx_ll_fsmc.c)

Comment on lines 59 to 61
*Add missing aliases for FSMC
Impacted files:
drivers/include/stm32f4xx_ll_fsmc.h
Copy link
Collaborator

Choose a reason for hiding this comment

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

Small reword + add internal report reference:

Suggested change
*Add missing aliases for FSMC
Impacted files:
drivers/include/stm32f4xx_ll_fsmc.h
*Add missing FSMC -> FMC compatibility aliases
Impacted files:
drivers/include/stm32f4xx_ll_fsmc.h
ST Internal Reference: 223859

Copy link
Collaborator

@mathieuchopstm mathieuchopstm left a comment

Choose a reason for hiding this comment

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

Also in

- name: FMC
match: "^FMC_(?:NL|NADV|CLK|NBL[0-3]|A\\d+|D\\d+|NE[1-4]|NOE|NWE|NWAIT|NCE|INT|SDCLK|SDNWE|SDCKE[0-1]|SDNE[0-1]|SDNRAS|SDNCAS|ALE|CLE)$"
bias: pull-up
slew-rate: very-high-speed

- - name: FMC
-   match: "^FMC_(?:NL|NADV|CLK|NBL[0-3]|A\\d+|D\\d+|NE[1-4]|NOE|NWE|NWAIT|NCE|INT|SDCLK|SDNWE|SDCKE[0-1]|SDNE[0-1]|SDNRAS|SDNCAS|ALE|CLE)$"
+ - name: FMC / FSMC
+   match: "^FS?MC_(?:NL|NADV|CLK|NBL[0-3]|A\\d+|D\\d+|NE[1-4]|NOE|NWE|NWAIT|NCE|INT|SDCLK|SDNWE|SDCKE[0-1]|SDNE[0-1]|SDNRAS|SDNCAS|ALE|CLE)$"
   bias: pull-up
   slew-rate: very-high-speed

then run genpinctrl.py and commit the changes in a separate commit

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.

2 participants