Skip to content

Commit a94bfa3

Browse files
fixed bugs and tested
1 parent 2f597da commit a94bfa3

File tree

5 files changed

+7
-1
lines changed

5 files changed

+7
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Starffive boards defenition"""

src/adafruit_blinka/microcontroller/starfive/JH7110/pin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
22
#
33
# SPDX-License-Identifier: MIT
4-
"""A Pin class for use with StarFive JH71x0."""
4+
"""A Pin class for use with StarFive JH7110."""
55

66
from adafruit_blinka.microcontroller.generic_linux.libgpiod_pin import Pin
77

src/board.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@
441441
)
442442

443443
else:
444+
444445
raise NotImplementedError(f"Board not supported {board_id}.")
445446

446447
if "SCL" in locals() and "SDA" in locals():

src/microcontroller/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ def delay_us(delay):
4949
from adafruit_blinka.microcontroller.am65xx import *
5050
elif chip_id == ap_chip.JH71X0:
5151
from adafruit_blinka.microcontroller.starfive.JH71x0 import *
52+
elif chip_id == ap_chip.JH7110:
53+
from adafruit_blinka.microcontroller.starfive.JH7110 import *
5254
elif chip_id == ap_chip.SUN4I:
5355
from adafruit_blinka.microcontroller.allwinner.a20 import *
5456
elif chip_id == ap_chip.SUN7I:

src/microcontroller/pin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
from adafruit_blinka.microcontroller.am65xx.pin import *
3535
elif chip_id == ap_chip.JH71X0:
3636
from adafruit_blinka.microcontroller.starfive.JH71x0.pin import *
37+
elif chip_id == ap_chip.JH7110:
38+
from adafruit_blinka.microcontroller.starfive.JH7110.pin import *
3739
elif chip_id == ap_chip.SUN4I:
3840
from adafruit_blinka.microcontroller.allwinner.a20.pin import *
3941
elif chip_id == ap_chip.SUN7I:

0 commit comments

Comments
 (0)