diff --git a/.gitignore b/.gitignore index 9dbc2093..bb9d9d53 100644 --- a/.gitignore +++ b/.gitignore @@ -54,6 +54,7 @@ host-packages host/.eggs release-files deploy-files +firmware-bin *.tar.xz *.zip diff --git a/host/greatfet/board.py b/host/greatfet/board.py index 6c0312f6..8e938dd4 100644 --- a/host/greatfet/board.py +++ b/host/greatfet/board.py @@ -6,6 +6,8 @@ Module containing the core definitions for a GreatFET board. """ +import string + from pygreat.board import GreatBoard from .peripherals.led import LED @@ -76,7 +78,7 @@ def __init__(self, *args, **kwargs): super(GreatFETBoard, self).__init__(*args, **kwargs) - def available_peripherals(self): + def available_interfaces(self): """ Returns a list of peripheral properties that exist on this board. """ return self._peripherals[:] @@ -172,3 +174,11 @@ def enable_low_level_access(self): self.lowlevel = LPC43xxTarget(self) + def __dir__(self): + """ Generate a cleaned-up dir listing for the relevant board. """ + + items = super(GreatFETBoard, self).__dir__() + return [item for item in items if item[0] in string.ascii_lowercase] + + +