Skip to content
This repository was archived by the owner on Nov 23, 2025. It is now read-only.

Commit 833a4a7

Browse files
committed
Removing obsolete get_gpio_config function.
Fixing get_system_info function.
1 parent b31241e commit 833a4a7

4 files changed

Lines changed: 2 additions & 23 deletions

File tree

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Version 0.5.0
2121
If these are distinct then the analog should be aliased as virtual higher
2222
index pins.
2323
* Fixed a bug where get compatible pins wasn't verifying requirements.
24+
* Removed get gpio config as this functionality is no longer applicable in
25+
the new UOS design.
2426

2527
Version 0.4.0
2628
-------------

uoshardware/abstractions.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,6 @@ class UOSFunctions:
5959
ack=True,
6060
rx_packets_expected=[6],
6161
)
62-
get_gpio_config = UOSFunction(
63-
name="get_gpio_config",
64-
address_lut={Persistence.NONE: 251},
65-
ack=True,
66-
rx_packets_expected=[2],
67-
pin_requirements=[],
68-
)
6962

7063
@staticmethod
7164
def enumerate_functions() -> list:

uoshardware/api.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -190,21 +190,6 @@ def get_system_info(self) -> ComResult:
190190
),
191191
)
192192

193-
def get_gpio_config(self, pin: int) -> ComResult:
194-
"""Read the configuration for a digital pin on the device.
195-
196-
:param pin: Defines the pin for config querying.
197-
:return: ComResult object containing the system information.
198-
"""
199-
return self.__execute_instruction(
200-
UOSFunctions.get_gpio_config,
201-
InstructionArguments(
202-
payload=tuple([pin]),
203-
expected_rx_packets=2,
204-
check_pin=pin,
205-
),
206-
)
207-
208193
def reset_all_io(self, volatility=Persistence.RAM) -> ComResult:
209194
"""Execute the reset IO at the defined volatility level.
210195

uoshardware/devices/_arduino.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
UOSFunctions.reset_all_io.name: [Persistence.RAM],
1414
UOSFunctions.hard_reset.name: [Persistence.NONE],
1515
UOSFunctions.get_system_info.name: [Persistence.NONE],
16-
UOSFunctions.get_gpio_config.name: [Persistence.NONE],
1716
},
1817
pins={
1918
2: Pin(gpio_out=True, gpio_in=True, pull_up=True),

0 commit comments

Comments
 (0)