You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,16 @@
7
7
8
8
The intent of this library is to provide avr specific delay routines similar to the ones provided by the arduino library. The public functions are:
9
9
10
-
**NOTE**: This library currently hardcodes the microcontroller frequency to 16MHz. This will not always be correct. See [avr-rust/delay#2](https://github.com/avr-rust/delay/issues/2) for more details.
10
+
## `$AVR_CPU_FREQUENCY_HZ`
11
+
12
+
This crate uses the [`avr-config`](https://crates.io/crates/avr-config) crate for fetching the CPU frequency. As such, the `AVR_CPU_FREQUENCY_HZ` environment variable will need to be set when compiling your crate for AVR.
0 commit comments