mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
stm32:stm32f20xxx pinmap Remove GPIO_SPEED_xxx and add legacy pinmap
Pinmaps should not have contained GPIO_SPEED_xxx settings. This is board dependent. This change adds CONFIG_STM32_USE_LEGACY_PINMAP to allow for lazy migration to using pinmaps without speeds. The work required to do this can be aided by running tools/stm32_pinmap_tool.py. The tools will take a board.h file and a legacy pinmap and outut the required changes that one needs to make to a board.h file. Eventually, STM32_USE_LEGACY_PINMAP will be deprecated and the legacy pinmaps removed from NuttX. Any new boards added should set STM32_USE_LEGACY_PINMAP=n and fully define the pins in board.h
This commit is contained in:
committed by
Mateusz Szafoni
parent
39c5931462
commit
35258a26c0
@@ -101,8 +101,11 @@
|
||||
/* STM32 F2 Family **********************************************************/
|
||||
|
||||
#elif defined(CONFIG_STM32_STM32F20XX)
|
||||
# include "hardware/stm32f20xxx_pinmap.h"
|
||||
|
||||
# if defined(CONFIG_STM32_USE_LEGACY_PINMAP)
|
||||
# include "hardware/stm32f20xxx_pinmap_legacy.h"
|
||||
# else
|
||||
# include "hardware/stm32f20xxx_pinmap.h"
|
||||
# endif
|
||||
/* STM32 F3 Family **********************************************************/
|
||||
|
||||
#elif defined(CONFIG_STM32_STM32F30XX)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user