Skip to content

Commit 8912f65

Browse files
committed
Clean API further and add/tidy docs
1 parent 037bdaa commit 8912f65

File tree

14 files changed

+36
-25
lines changed

14 files changed

+36
-25
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from .platform_timer import PlatformTimer
2-
from .soc_id import SoCID
1+
from ._platform_timer import PlatformTimer
2+
from ._soc_id import SoCID
33

44
__all__ = ['PlatformTimer', 'SoCID']
File renamed without changes.
File renamed without changes.

chipflow_digital_ip/io/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from .gpio import GPIOPeripheral
2-
from .uart import UARTPeripheral
3-
from .i2c import I2CPeripheral, I2CSignature
4-
from .spi import SPIPeripheral, SPISignature
1+
from ._gpio import GPIOPeripheral
2+
from ._uart import UARTPeripheral
3+
from ._i2c import I2CPeripheral, I2CSignature
4+
from ._spi import SPIPeripheral, SPISignature
55

66
__all__ = ['GPIOPeripheral', 'UARTPeripheral', 'I2CPeripheral', 'SPIPeripheral',
77
'I2CSignature', 'SPISignature']
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

chipflow_digital_ip/io/uart.py renamed to chipflow_digital_ip/io/_uart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from chipflow_lib.platforms import OutputIOSignature, InputIOSignature
99

10-
from . import rfc_uart
10+
from . import _rfc_uart
1111

1212
__all__ = ["UARTPeripheral"]
1313

@@ -150,7 +150,7 @@ def __init__(self):
150150

151151
def __init__(self, *, addr_width=5, data_width=8, init_divisor=0):
152152
phy_config_shape = data.StructLayout({"divisor": unsigned(24)})
153-
self._uart = rfc_uart.Peripheral(
153+
self._uart = _rfc_uart.Peripheral(
154154
addr_width=addr_width,
155155
data_width=data_width,
156156
phy_config_shape=phy_config_shape,
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from .hyperram import HyperRAM
2-
from .sram import SRAMPeripheral
3-
from .qspi_flash import QSPIFlash
1+
from ._hyperram import HyperRAM
2+
from ._sram import SRAMPeripheral
3+
from ._qspi_flash import QSPIFlash
44

55
__all__ = ['HyperRAM', 'SRAMPeripheral', 'QSPIFlash']

0 commit comments

Comments
 (0)