mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-02-17 01:49:31 -07:00
stm32f1: Use enumerations for pin mappings
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
8aa8feedb8
commit
91cf497656
2 changed files with 6 additions and 11 deletions
|
|
@ -17,6 +17,12 @@
|
|||
* Pin mappings
|
||||
****************************************************************/
|
||||
|
||||
DECL_ENUMERATION_RANGE("pin", "PA0", GPIO('A', 0), 16);
|
||||
DECL_ENUMERATION_RANGE("pin", "PB0", GPIO('B', 0), 16);
|
||||
DECL_ENUMERATION_RANGE("pin", "PC0", GPIO('C', 0), 16);
|
||||
DECL_ENUMERATION_RANGE("pin", "PD0", GPIO('D', 0), 16);
|
||||
DECL_ENUMERATION_RANGE("pin", "PE0", GPIO('E', 0), 16);
|
||||
|
||||
GPIO_TypeDef *const digital_regs[] = {
|
||||
GPIOA, GPIOB, GPIOC, GPIOD, GPIOE
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue