From 9e907ac18f85f0eafa22271c30d1f8bc66a44833 Mon Sep 17 00:00:00 2001 From: Damian Pound Date: Mon, 6 Jun 2022 10:25:58 -0500 Subject: [PATCH] Add .cargo/config.toml to simplify build command --- .cargo/config.toml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..43b1bd4 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,9 @@ +[build] +target = "avr-atmega328p.json" + +[unstable] +build-std = ["core"] + +# Cargo versions before 2021-02-23 won't recognize this: https://github.com/rust-lang/cargo/pull/9175 +[env] +AVR_CPU_FREQUENCY_HZ = 16000000