Skip to content

Add SPI driver infrastructure and documentation - #5

Merged
amken3d merged 1 commit into
mainfrom
spi
Nov 17, 2025
Merged

Add SPI driver infrastructure and documentation#5
amken3d merged 1 commit into
mainfrom
spi

Conversation

@amken3d

@amken3d amken3d commented Nov 17, 2025

Copy link
Copy Markdown
Owner
  • Implemented core SPI driver supporting Klipper's SPI protocol for both hardware and software communication.
  • Added commands: config_spi, spi_set_bus, spi_transfer, spi_send, config_spi_without_cs, and config_spi_shutdown, with response handling for spi_transfer_response.
  • Developed platform-agnostic HAL interface for SPI (SPIDriver and SoftwareSPIDriver), integrated RP2040-specific implementations using TinyGo's machine.SPI API and software bit-banging.
  • Updated emergency shutdown to send configured messages to SPI devices automatically.
  • Included detailed documentation (spi.md) covering implementation architecture, Klipper protocol commands, hardware configurations, and example usage.
  • Updated RP2040 main initialization to register SPI drivers and commands.

- Implemented core SPI driver supporting Klipper's SPI protocol for both hardware and software communication.
- Added commands: `config_spi`, `spi_set_bus`, `spi_transfer`, `spi_send`, `config_spi_without_cs`, and `config_spi_shutdown`, with response handling for `spi_transfer_response`.
- Developed platform-agnostic HAL interface for SPI (`SPIDriver` and `SoftwareSPIDriver`), integrated RP2040-specific implementations using TinyGo's `machine.SPI` API and software bit-banging.
- Updated emergency shutdown to send configured messages to SPI devices automatically.
- Included detailed documentation (`spi.md`) covering implementation architecture, Klipper protocol commands, hardware configurations, and example usage.
- Updated RP2040 main initialization to register SPI drivers and commands.
@amken3d
amken3d merged commit 970cabe into main Nov 17, 2025
1 check failed
@amken3d
amken3d deleted the spi branch November 17, 2025 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant