diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-03-12 12:22:49 -0400 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2019-03-17 19:38:18 -0400 |
commit | 8aa8feedb8b9b3b76144713c927573ed17c35167 (patch) | |
tree | 82506a461e545ac16ba573c1069531327a2274d0 /klippy | |
parent | 7e2c0ffa911dcbf4793b34c817747010894c2c15 (diff) | |
download | kutter-8aa8feedb8b9b3b76144713c927573ed17c35167.tar.gz kutter-8aa8feedb8b9b3b76144713c927573ed17c35167.tar.xz kutter-8aa8feedb8b9b3b76144713c927573ed17c35167.zip |
lpc176x: Use enumerations for pin mappings
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r-- | klippy/pins.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/klippy/pins.py b/klippy/pins.py index b47b0091..e998f248 100644 --- a/klippy/pins.py +++ b/klippy/pins.py @@ -28,10 +28,6 @@ def named_pins(fmt, port_count, bit_count=32): for port in range(port_count) for portbit in range(bit_count) } -def lpc_pins(): - return { 'P%d.%d' % (port, pin) : port * 32 + pin - for port in range(5) for pin in range(32) } - def beaglebone_pins(): gpios = named_pins("gpio%d_%d", 4) gpios.update({"AIN%d" % i: i+4*32 for i in range(8)}) @@ -39,7 +35,6 @@ def beaglebone_pins(): MCU_PINS = { "stm32f103": port_pins(5, 16), - "lpc176x": lpc_pins(), "pru": beaglebone_pins(), "linux": {"analog%d" % i: i for i in range(8)}, # XXX } |