mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-22 06:04:03 -06:00
stm32f4: Add support for STM32F103
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
485164b8b3
commit
7efc53ff59
7 changed files with 191 additions and 17 deletions
|
@ -16,15 +16,20 @@ DECL_ENUMERATION_RANGE("pin", "PB0", GPIO('B', 0), 32);
|
|||
DECL_ENUMERATION_RANGE("pin", "PC0", GPIO('C', 0), 32);
|
||||
DECL_ENUMERATION_RANGE("pin", "PD0", GPIO('D', 0), 32);
|
||||
DECL_ENUMERATION_RANGE("pin", "PE0", GPIO('E', 0), 32);
|
||||
#ifdef GPIOH
|
||||
DECL_ENUMERATION_RANGE("pin", "PF0", GPIO('F', 0), 32);
|
||||
DECL_ENUMERATION_RANGE("pin", "PG0", GPIO('G', 0), 32);
|
||||
DECL_ENUMERATION_RANGE("pin", "PH0", GPIO('H', 0), 32);
|
||||
#endif
|
||||
#ifdef GPIOI
|
||||
DECL_ENUMERATION_RANGE("pin", "PI0", GPIO('I', 0), 32);
|
||||
#endif
|
||||
|
||||
GPIO_TypeDef * const digital_regs[] = {
|
||||
GPIOA, GPIOB, GPIOC, GPIOD, GPIOE, GPIOF, GPIOG, GPIOH,
|
||||
GPIOA, GPIOB, GPIOC, GPIOD, GPIOE,
|
||||
#ifdef GPIOH
|
||||
GPIOF, GPIOG, GPIOH,
|
||||
#endif
|
||||
#ifdef GPIOI
|
||||
GPIOI,
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue