imxrt-rs / imxrt-hal

Rust for NXP i.MX RT
Apache License 2.0
122 stars 29 forks source link

Prepare LPSPI driver for `embedded-hal 1.0` rework #149

Open Finomnis opened 6 months ago

Finomnis commented 6 months ago

Some fixes/modifications to the existing LPSPI driver.

This is in preparation for the embedded-hal 1.0 rework, which will introduce a new high level driver that wraps this low level one.

Changes:

Finomnis commented 4 months ago

@mciantyre Sorry that I was gone for a while. Don't know how much time I will be able to spend on the SPI device, but I'll try to do a little :)

I finally finished this PR. I didn't update examples yet, but I think there's no point really in updating them until we have a properly reworked driver.

Any feedback?

Finomnis commented 4 months ago

@mciantyre Ping :)

teburd commented 3 months ago

I’d say squash this and I’ll merge, changes look good. Ian is presumably busy with other endeavors at the moment.

Finomnis commented 3 months ago

@teburd I don't think I agree time to continue this any time soon, so let's keep that one open because it's a breaking change.

mciantyre commented 2 months ago

There's useful non-breaking changes in this branch, changes that could help today's users. I extracted them into #156.

Finomnis commented 2 months ago

@mciantyre Welcome back! Glad to see your life has cooled down enough to dabble in some Rust again :)