nuttx/arch/arm
raiden00pl d6e1c20a9c arch/stm32: use input mode for STM32F1 input pinmap entries
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>
2026-05-05 11:48:49 -04:00
..
include !boards: Remove NSH_ARCHINIT and board_app_initialize 2026-05-02 18:36:46 +08:00
src arch/stm32: use input mode for STM32F1 input pinmap entries 2026-05-05 11:48:49 -04:00
CMakeLists.txt arch/arm: migrate to SPDX identifier 2024-12-06 09:25:23 +08:00
Kconfig arch/arm/ht32f491x3: add initial support 2026-03-30 09:48:16 +08:00