Skip to content

Commit

Permalink
host: board: minor cosmetic enhancements for release
Browse files Browse the repository at this point in the history
  • Loading branch information
ktemkin committed Sep 3, 2019
1 parent a3a4bc5 commit 22e0834
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ host-packages
host/.eggs
release-files
deploy-files
firmware-bin
*.tar.xz
*.zip

Expand Down
12 changes: 11 additions & 1 deletion host/greatfet/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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[:]

Expand Down Expand Up @@ -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]



0 comments on commit 22e0834

Please sign in to comment.