Skip to main content

Module device

Module device 

Source
Expand description

Pico de Gallo glue over a fixed pin map: binds the HAL’s SpiDevice + GPIOs to the flash core, drives the flash’s static control lines (/WP, /HOLD) high, and implements an optional CRESET-based bus hold.

Structs§

Connected
Live connection. spi/bus each own Arc<Mutex<PicoDeGallo>> clones that keep the USB client (and its worker) alive after the Hal is dropped.
HostBus
The flash’s control lines plus an optional bus hold, all on fixed GPIOs.

Constants§

GPIO_CRESET 🔒
GPIO_CS 🔒
GPIO_HOLD 🔒
GPIO_WP 🔒

Functions§

connect
Connect, validate firmware schema, configure SPI (mode 0), and build handles over the fixed pin map. reset enables the CRESET bus hold on User GPIO 3.