avr-rust / delay

arduino-like delay routines based on busy-wait loops
Apache License 2.0
15 stars 11 forks source link

Handle MCU_SPEED properly #2

Closed pusherofbrooms closed 4 years ago

pusherofbrooms commented 6 years ago

It's currently a constant in the library code. This probably isn't right. It needs to be exposed to users. I don't know enough rust to know the idiomatic way to do this yet.

dylanmckay commented 4 years ago

The avr-config crate can be used to get the CPU frequency easily now. I've got a fix