Abstract away multiplexing/demultiplexing of pin a...
by whitequark 7 years 2 months
Abstract away multiplexing/demultiplexing of pin and FIFO access.

Applets shouldn't need to care which specific port they run on,
unless they have a good reason to.
7d294e25
target: unbreak I2C after 09b23d65.
by whitequark 7 years 2 months
1ff2e7b7
target: make _SyncPort have a TSTriple .t, to make...
by whitequark 7 years 2 months
target: make _SyncPort have a TSTriple .t, to make it usable via Pads.
55e2e479
gateware.pads: accept and ignore None passed as an...
by whitequark 7 years 2 months
gateware.pads: accept and ignore None passed as an element.

This forces downstream code to use `hasattr`, which means it will
still work correctly if no element is passed at all. I.e.
the following works the same:

pads = Pads(rx=sig)
pads = Pads(rx=sig, tx=None)
926c50e7
applet.uart, gateware.uart: minor cleanup.
by whitequark 7 years 2 months
30d90fe6
applet: check if applet is already registered when...
by whitequark 7 years 2 months
applet: check if applet is already registered when subclassing.

It's a frequent copy-paste error.
00130b2e
cli: move code that adds a TRACE log level to main...
by whitequark 7 years 2 months
cli: move code that adds a TRACE log level to main package.

Or you cannot `import glasgow.device` and have things work.
ac1fc0bc
gateware.i2c: implement I2CMaster.
by whitequark 7 years 2 months
09c51710
device.GlasgowPort: explicitly convert data to byt...
by whitequark 7 years 2 months
device.GlasgowPort: explicitly convert data to bytes in write.

The same is not done for write_str because of the default
implementation of __str__, which has too much of a footgun potential.
f68683b8
applet: extract port voltage configuration code.
by whitequark 7 years 2 months
a52b0fd7
Report a bug