imxrt-rs / imxrt-hal

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

Add 1020 chip configuration #125

Closed Florob closed 1 year ago

Florob commented 1 year ago

Add chip configuration for the i.MX RT 1020 in accordance with the RM. Basic testing was done on EVK as well as an own design.

There is one TODO comment in here: In imxrt1010.rs Clko2Selection currently calls thetrace_clk_root TracClk instead of TraceClk. I'm not sure if that is a typo or intentional. And regardless of whether it is how to spell it for 1020.

Florob commented 1 year ago

Awesome, thanks for your continued 1020 contributions. I don't have hardware to play with this, but I checked all code changes against the reference manual. This will be in the next 0.5 release; give me a few days.

Not at all. Thank you for maintaining this project. I'm doing this for a personal project (hence the largest i.MX RT that still has leads) and it would not be feasible without the existing ecosystem.

Good find; I typo-ed that. I might include https://github.com/imxrt-rs/imxrt-hal/commit/e9ff8f6092028dbed3c5ce7846d5b42f5a451e7d in the 0.5 series, and simultaneously fix the spelling before 0.6.

An associated constant looks like a clever solution :+1:. Thank you for considering this.