Skip to content

boards/stm32f1: migrate to new pinmap#18797

Open
raiden00pl wants to merge 2 commits intoapache:masterfrom
raiden00pl:stm32-pinmap-remove-legacy-stm32f1
Open

boards/stm32f1: migrate to new pinmap#18797
raiden00pl wants to merge 2 commits intoapache:masterfrom
raiden00pl:stm32-pinmap-remove-legacy-stm32f1

Conversation

@raiden00pl
Copy link
Copy Markdown
Member

Summary

migrate stm32f1 to new pinmap

Impact

#15432

Testing

CI

@github-actions github-actions Bot added Size: L The size of the change in this PR is large Board: arm labels Apr 24, 2026
@raiden00pl raiden00pl force-pushed the stm32-pinmap-remove-legacy-stm32f1 branch 2 times, most recently from 4bff368 to 36bd704 Compare April 24, 2026 09:45
jerpelea
jerpelea previously approved these changes Apr 27, 2026
@raiden00pl raiden00pl force-pushed the stm32-pinmap-remove-legacy-stm32f1 branch from 36bd704 to c6b76fa Compare May 5, 2026 10:26
@raiden00pl raiden00pl marked this pull request as ready for review May 5, 2026 10:27
@raiden00pl raiden00pl force-pushed the stm32-pinmap-remove-legacy-stm32f1 branch from c6b76fa to 2410565 Compare May 5, 2026 10:37
@raiden00pl raiden00pl requested a review from davids5 as a code owner May 5, 2026 10:53
@github-actions github-actions Bot added the Arch: arm Issues related to ARM (32-bit) architecture label May 5, 2026
@raiden00pl raiden00pl force-pushed the stm32-pinmap-remove-legacy-stm32f1 branch 2 times, most recently from d0be9f0 to 2da9e2d Compare May 5, 2026 11:47
raiden00pl added 2 commits May 5, 2026 13:50
migrate stm32f1 to new pinmap

Signed-off-by: raiden00pl <raiden00@railab.me>
Use GPIO_MODE_INPUT for STM32F1 pinmap entries that are configured as
GPIO_INPUT instead of carrying GPIO_MODE_2MHz.

For STM32F1 the MODE field selects output speed only for output or
alternate-function output pins. stm32_configgpio() forces input pins to
input mode regardless of the encoded MODE bits.

From arch/arm/src/stm32/stm32_gpio.c:

   311   /* Decode the mode and configuration */
   312
   313   regval  = getreg32(cr);
   314
   315   if (input)
   316     {
   317       /* Input.. force mode = INPUT */
   318
   319       modecnf = 0;
   320     }
   321   else
   322     {
   323       /* Output or alternate function */
   324
   325       modecnf = (cfgset & GPIO_MODE_MASK) >> GPIO_MODE_SHIFT;
   326     }

Signed-off-by: raiden00pl <raiden00@railab.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: arm Issues related to ARM (32-bit) architecture Board: arm Size: L The size of the change in this PR is large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants