From 2e6acff93dd88ca8135238969fb5a2a767636370 Mon Sep 17 00:00:00 2001 From: Andrey Zgarbul Date: Sun, 28 Jul 2019 15:48:11 +0300 Subject: [PATCH] device features --- Cargo.toml | 7 +++++++ src/adc.rs | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 1719fcef..7ea19c20 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -92,6 +92,13 @@ stm32f100 = ["stm32f1/stm32f100", "device-selected"] stm32f101 = ["stm32f1/stm32f101", "device-selected"] stm32f103 = ["stm32f1/stm32f103", "device-selected"] +# Devices with 64 or 128 Kb ROM +medium = [] +# Devices with 256 or 512 Kb ROM +high = ["medium"] +# Devices with 768 Kb ROM or more +xl = ["high"] + [profile.dev] incremental = false codegen-units = 1 diff --git a/src/adc.rs b/src/adc.rs index 389c354c..d4752a98 100644 --- a/src/adc.rs +++ b/src/adc.rs @@ -636,4 +636,4 @@ where Transfer::w(buffer, self) } -} \ No newline at end of file +}