3 ms·
From my understanding, Rust's HAL APIs are not trying to optimize for ergonomics but for type safety and ownership. It's more tedious to write, but it's also ni
by bschwindHN 5y ago
From my understanding, Rust's HAL APIs are not trying to optimize for ergonomics but for type safety and ownership. It's more tedious to write, but it's also nice to have the standard formatted Rust docs available to see all registers and what you can do with them. It means things like hardware peripherals which only work on certain pins, have those pins defined in the _type system_.
It's more verbose for sure, but I prefer it for it's explicitness and ownership tracking. Definitely not perfect, but it's also very early times for Rust on embedded devices.
- im_down_w_otp 5y agoWhy not both? https://github.com/auxoncorp/bounded-registers https://github.com/auxoncorp/bounded-registers
- bschwindHN 5y agoEven better! I imagine the ergonomics will improve over time without sacrificing type safety.