SolarOS

SolarOS 4.6.8 manual · command

expansion

Show expansion capabilities, named buses and leases, connector resources, active devices, and resource claims.

Usage

UsageDescription
expansion [status]Show expansion capabilities, named buses and leases, connector resources, active devices, and resource claims.
expansion layout [connector]Draw the board's physical connector map with live free, releasable, claimed, fixed, power, ground, and NC markers.
expansion scanList expansion resources and probe-capable drivers.
expansion driversList compiled expansion drivers.
expansion devicesList manually attached expansion devices.
`expansion bus create i2c <name> port=<i2c0\i2c1> sda=<gpio> scl=<gpio> [speed=<hz>]`Define a runtime I2C bus on an unused controller and approved expansion pins.
expansion bus create onewire <name> pin=<gpio>Define a runtime named 1-Wire bus on an approved expansion pin.
expansion bus create ps2 <name> clock=<gpio> data=<gpio>Define an exclusive PS/2 bus on two approved expansion pins.
`expansion bus create spi <name> host=<spi2\spi3> sclk=<gpio> mosi=<gpio> [miso=<gpio\none>] cs=<gpio> [cs=<gpio> ...] [max=<bytes>]`Define a runtime-routed SPI bus on a board-approved host and expansion pins.
`expansion bus create uart <name> port=<uart1\uart2> tx=<gpio> rx=<gpio> [baud=<rate>]`Define a lazy runtime UART on an unused controller and approved expansion pins.
expansion bus attach <name>Attach a named detachable bus and reserve its endpoint and signal pins.
expansion bus detach <name>Detach an idle named bus, preserving its descriptor while releasing its endpoint and signal pins.
expansion bus remove <name>Remove an idle runtime bus and release its signal pins.
expansion attach <driver> <name> <resource...>Attach a compiled expansion driver or manual resource profile.
expansion detach <name>Detach an active expansion device and release its resource claims.