mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-07 22:14:05 -06:00
atsamd: Use enumerations for pin mappings
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
8b0195f896
commit
7e2c0ffa91
2 changed files with 6 additions and 3 deletions
|
@ -44,8 +44,14 @@ gpio_peripheral(uint32_t gpio, char ptype, int32_t pull_up)
|
|||
|
||||
#if CONFIG_MACH_SAMD21
|
||||
#define NUM_PORT 2
|
||||
DECL_ENUMERATION_RANGE("pin", "PA0", GPIO('A', 0), 32);
|
||||
DECL_ENUMERATION_RANGE("pin", "PB0", GPIO('B', 0), 32);
|
||||
#elif CONFIG_MACH_SAMD51
|
||||
#define NUM_PORT 4
|
||||
DECL_ENUMERATION_RANGE("pin", "PA0", GPIO('A', 0), 32);
|
||||
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);
|
||||
#endif
|
||||
|
||||
struct gpio_out
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue