imxrt-rs / imxrt-hal

Rust for NXP i.MX RT
Apache License 2.0
137 stars 33 forks source link

FlexIO as SPI Master #117

Open terrorfisch opened 2 years ago

terrorfisch commented 2 years ago

I am currently working on a project that will use a teensy 4.1 to control about 100 SPI devices and plan to use the FlexIO periphial to minimize daisy-chaining by driving up to 16 devices in parallel (only one channel select though). I have already hacked together a version that basically writes the constants from the SPI Master example into the registers with a bit of extra configuration.

Does it make sense to include a FlexIOasSPI periphial here? I think I lack the experience to write a useful general FlexIO abstraction as this is my first embedded project.

mciantyre commented 2 years ago

Sorry for the delayed response! Hope your project is making progress.

I'd be interested in studying your SPI-specialized FlexIO driver. It could give us the chance to use an otherwise unused peripheral for something, even if it's not generalized. I'm particularly interested if it