Cargo Features

[dependencies]
n32g4xx-hal = { version = "0.10.3", default-features = false, features = ["rt", "n32g401", "n32g430", "n32g432", "n32g435", "n32g451", "n32g452", "n32g455", "n32g457", "n32g4fr", "rtic1", "rtic2", "defmt", "dac"] }
default = rt

Use one of the supported N32-series related features: n32g401, n32g432, n32g435, n32g451, n32g452, n32g455, n32g457, n32g4fr Note: n32g4 has only one feature for some very similar device families,

rt default

Enables rt of n32g4

n32g401

Enables n32g401 of n32g4

Affects rcc::SYSCLK_MAX, afio::Parts, afio::TOL5V_CFG, afio::EFT_CFG1, afio::EFT_CFG2, afio::FILT_CFG, afio::DIGEFT_CFG1, afio::DIGEFT_CFG2

n32g430

Enables n32g430 of n32g4

Affects rcc::SYSCLK_MAX, afio::Parts, afio::TOL5V_CFG, afio::EFT_CFG1, afio::EFT_CFG2, afio::FILT_CFG, afio::DIGEFT_CFG1, afio::DIGEFT_CFG2

n32g432

Enables n32g432 of n32g4

Affects afio::Parts, rcc::SYSCLK_MAX

n32g435

Enables n32g435 of n32g4

Affects afio::Parts, rcc::SYSCLK_MAX

n32g451

Enables n32g451 of n32g4

Affects afio::Parts, afio::ECTRL, afio::RMP_CFG3, afio::RMP_CFG4, afio::RMP_CFG5, dma::chmap, n32g4xx-hal::bkp, rcc::SYSCLK_MAX

n32g452

Enables n32g452 of n32g4

Affects afio::Parts, afio::ECTRL, afio::RMP_CFG3, afio::RMP_CFG4, afio::RMP_CFG5, dma::chmap, n32g4xx-hal::bkp, rcc::SYSCLK_MAX

n32g455

Enables n32g455 of n32g4

Affects afio::Parts, afio::ECTRL, afio::RMP_CFG3, afio::RMP_CFG4, afio::RMP_CFG5, dma::chmap, n32g4xx-hal::bkp, rcc::SYSCLK_MAX

n32g457

Enables n32g457 of n32g4

Affects afio::Parts, afio::ECTRL, afio::RMP_CFG3, afio::RMP_CFG4, afio::RMP_CFG5, dma::chmap, n32g4xx-hal::bkp, rcc::SYSCLK_MAX

n32g4fr

Enables n32g4fr of n32g4

Affects afio::Parts, afio::ECTRL, afio::RMP_CFG3, afio::RMP_CFG4, afio::RMP_CFG5, dma::chmap, n32g4xx-hal::bkp, rcc::SYSCLK_MAX

rtic1 = cortex-m-rtic

Support monotonic timers and other stuff that can be used by RTICv1 framework

Enables rtic-monotonic and systick-monotonic

rtic2

Support monotonic timers and other stuff that can be used by RTICv2 framework

Requires nightly rust compiler

Enables rtic, rtic-monotonics ^1.5, and rtic-time ^1.3

defmt

Implementation of defmt::Format for public enums and structures. See defmt

Enables defmt, defmt-03 of embedded-hal, defmt of fugit, defmt-0-3 of nb

rng dac

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

cortex-m-rtic rtic1?