Cargo Features

lpc8xx-hal has no features set by default.

[dependencies]
lpc8xx-hal = { version = "0.10.0", features = ["822m101jdh20", "822m101jhi33", "824m201jdh20", "824m201jhi33", "845m301jhi33", "845m301jhi48", "845m301jbd64", "82x", "822", "824", "845", "82x-rt", "845-rt", "no-target-warning", "docs", "20", "33", "48", "64", "rt-selected", "trybuild"] }
822m101jdh20 = 20, 822

Target hardware selection

822m101jhi33 = 33, 822
824m201jdh20 = 20, 824
824m201jhi33 = 33, 824
845m301jhi33 = 33, 845

844m201jhi33 = ["844", "33"]
844m201jbd48 = ["844", "48"]
844m201jhi48 = ["844", "48"]
844m201jbd64 = ["844", "64"]

845m301jbd48 845m301jhi48 = 48, 845
845m301jbd64 = 64, 845
82x 822? 824? 82x-rt? = lpc82x-pac

Selection of whole families or parts thereof as your target hardware.

Affects lpc8xx-hal::Peripherals.GPIO, lpc8xx-hal::Peripherals.SWM, lpc8xx-hal::Peripherals.PININT, syscon::Parts.uartfrg, syscon::UARTFRG

822 822m101jdh20? 822m101jhi33? = 82x
824 824m201jdh20? 824m201jhi33? = 82x
845 845-rt? 845m301jbd48? 845m301jbd64? 845m301jhi33? 845m301jhi48? = lpc845-pac

Affects lpc8xx-hal::ctimer, lpc8xx-hal::pinint, lpc8xx-hal::Peripherals.CTIMER0, lpc8xx-hal::Peripherals.GPIO, lpc8xx-hal::Peripherals.PININT, lpc8xx-hal::Peripherals.SWM, lpc8xx-hal::Peripherals.USART3, lpc8xx-hal::Peripherals.USART4, lpc8xx-hal::Peripherals.CAPT, lpc8xx-hal::Peripherals.DAC0, lpc8xx-hal::Peripherals.DAC1, syscon::frg, syscon::Parts.frg0, syscon::Parts.frg1

82x-rt = 82x, cortex-m-rt, rt-selected

Runtime support. Required when building an application, not a library.

That these features depend on the 82x/845 features looks redundant, but is actually required by the build script to check the target selection.

Enables rt of lpc82x-pac

845-rt = 845, cortex-m-rt, rt-selected

Enables rt of lpc845-pac

no-target-warning

Indicates that the feature selection is deliberate and should not cause any warnings.

docs

Indicates to the build script that we're building docs, and it can skip whatever might not work or is not necessary.

20 822m101jdh20? 824m201jdh20?

Internal implementation detail. Used by HAL code to determine the exact hardware capabilites.

33 822m101jhi33? 824m201jhi33? 845m301jhi33?
48 845m301jbd48? 845m301jhi48?
64 845m301jbd64?
rt-selected 82x-rt? 845-rt?

Internal implementation detail. Used by other code to determine whether a runtime feature was selected.

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.

trybuild implicit feature

Enables trybuild

trybuild:

Test harness for ui tests of compiler diagnostics

cortex-m-rt 82x-rt? 845-rt?
lpc82x-pac 82x? 82x-rt?
lpc845-pac 845? 845-rt?