imxrt-rs / imxrt-hal

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

Only allow HAL to create I2C/SPI config errors #100

Closed AlyoshaVasilieva closed 4 years ago

AlyoshaVasilieva commented 4 years ago

These errors are only valid if the HAL is creating them, so don't allow users to create them. Pretty minor.

mciantyre commented 4 years ago

I probably set the bad precedent. Thank you for cleaning these up!