Cargo Features

stm32l4xx-hal has no features set by default.

[dependencies]
stm32l4xx-hal = { version = "0.7.1", features = ["rt", "unproven", "otg_fs", "stm32l431", "stm32l471", "stm32l412", "stm32l422", "stm32l432", "stm32l462", "stm32l433", "stm32l443", "stm32l475", "stm32l476", "stm32l4a6", "stm32l4r9", "stm32l4s9", "stm32-usbd"] }
rt

Enables rt of stm32l4 ^0.14.0

unproven

Enables embedded-hal ^0.2.6

otg_fs = synopsys-usb-otg
stm32l431

L4x1

Enables stm32l4x1 of stm32l4 ^0.14.0

stm32l451 stm32l471

Enables stm32l4x1 of stm32l4 ^0.14.0

stm32l412

L412

Enables stm32l412 of stm32l4 ^0.14.0

Affects rtc::rtc3, stm32l4xx-hal::usb

stm32l422

Enables stm32l412 of stm32l4 ^0.14.0

Affects rtc::rtc3, stm32l4xx-hal::usb

stm32l432

L4x2

Enables stm32l4x2 of stm32l4 ^0.14.0

Affects stm32l4xx-hal::usb

stm32l442 stm32l452 stm32l462

Enables stm32l4x2 of stm32l4 ^0.14.0

Affects stm32l4xx-hal::usb

stm32l433

L4x3

Enables stm32l4x3 of stm32l4 ^0.14.0

Affects stm32l4xx-hal::usb

stm32l443

Enables stm32l4x3 of stm32l4 ^0.14.0

Affects stm32l4xx-hal::usb

stm32l475

L4x5

Enables stm32l4x5 of stm32l4 ^0.14.0

stm32l476

L4x6

Enables stm32l4x6 of stm32l4 ^0.14.0

stm32l486 stm32l496 stm32l4a6

Enables stm32l4x6 of stm32l4 ^0.14.0

stm32l4r9

L4x9
PAC has an L4r9 specific variation

Enables stm32l4r9 of stm32l4 ^0.14.0

Affects rtc2::BACKUP_REGISTER_COUNT

stm32l4s9

Enables stm32l4r9 of stm32l4 ^0.14.0

Affects rtc2::BACKUP_REGISTER_COUNT

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.

stm32-usbd implicit feature

Enables stm32-usbd

stm32-usbd:

'usb-device' implementation for STM32 microcontrollers

Affects stm32l4xx-hal::usb

synopsys-usb-otg otg_fs?

Enables synopsys-usb-otg ^0.2.4