console: Remove support for PINS command

Remove support for builtin pin aliases from the console.py tool.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-10-24 21:19:45 -04:00
parent b79a51c383
commit 1699f378de
2 changed files with 7 additions and 12 deletions

View File

@ -91,11 +91,10 @@ of these benchmarks are not reported in the Features.md document.
The following configuration sequence is used on AVR chips:
```
PINS arduino
allocate_oids count=3
config_stepper oid=0 step_pin=ar29 dir_pin=ar28 invert_step=0
config_stepper oid=1 step_pin=ar27 dir_pin=ar26 invert_step=0
config_stepper oid=2 step_pin=ar23 dir_pin=ar22 invert_step=0
config_stepper oid=0 step_pin=PA5 dir_pin=PA4 invert_step=0
config_stepper oid=1 step_pin=PA3 dir_pin=PA2 invert_step=0
config_stepper oid=2 step_pin=PC7 dir_pin=PC6 invert_step=0
finalize_config crc=0
```
@ -182,11 +181,10 @@ The test was last run on commit `59a60d68` with gcc version
The following configuration sequence is used on the PRU:
```
PINS beaglebone
allocate_oids count=3
config_stepper oid=0 step_pin=P8_13 dir_pin=P8_12 invert_step=0
config_stepper oid=1 step_pin=P8_15 dir_pin=P8_14 invert_step=0
config_stepper oid=2 step_pin=P8_19 dir_pin=P8_18 invert_step=0
config_stepper oid=0 step_pin=gpio0_23 dir_pin=gpio1_12 invert_step=0
config_stepper oid=1 step_pin=gpio1_15 dir_pin=gpio0_26 invert_step=0
config_stepper oid=2 step_pin=gpio0_22 dir_pin=gpio2_1 invert_step=0
finalize_config crc=0
```

View File

@ -47,7 +47,7 @@ class KeyboardReader:
reactor.register_fd(self.fd, self.process_kbd)
reactor.register_callback(self.connect)
self.local_commands = {
"PINS": self.command_PINS, "SET": self.command_SET,
"SET": self.command_SET,
"DELAY": self.command_DELAY, "FLOOD": self.command_FLOOD,
"SUPPRESS": self.command_SUPPRESS, "STATS": self.command_STATS,
"LIST": self.command_LIST, "HELP": self.command_HELP,
@ -91,9 +91,6 @@ class KeyboardReader:
def update_evals(self, eventtime):
self.eval_globals['freq'] = self.mcu_freq
self.eval_globals['clock'] = self.clocksync.get_clock(eventtime)
def command_PINS(self, parts):
mcu_type = self.ser.get_msgparser().get_constant('MCU')
self.pins.add_pin_mapping(mcu_type, parts[1])
def command_SET(self, parts):
val = parts[2]
try: