Cargo Features

[dependencies]
metro_m4 = { version = "0.14.1", default-features = false, features = ["dma", "max-channels", "rt", "use_semihosting", "usb"] }
default = rt

ask the HAL to enable atsamd51j support

Enables samd51j of atsamd-hal

dma max-channels?

Enables dma of atsamd-hal

max-channels = dma

Enables max-channels of atsamd-hal

rt default = cortex-m-rt

Enables samd51j-rt of atsamd-hal

use_semihosting
usb = usb-device

Enables usb of atsamd-hal

Affects metro_m4::usb_allocator

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-rt rt
usb-device usb?