Crate msp430_periph[−][src]
Expand description
msp430-periph
Peripheral definition for all MSP430s
Usage
Since this crate includes 625 devices and 336 peripherals, everything is feature-gated. That means you have to enable every microcontroller and peripheral you want to use, for example:
[dependencies.msp430-periph] version = "0.0.3" features = [ "msp430fr5969", "watchdog_timer_2", "pmm_4", "portb_3i1", "portb_3i2", ]
There is also an -all
version of microcontroller features to enable all peripherals from this microcontroller:
[dependencies] msp430-periph = { version = "0.0.3", features = [ "msp430fr5969-all" ] }
To use with the msp430-rt
runtime, also enable the rt
feature. No memory.x
files are needed.
Documentation
It is not reasonable to build documentation for the whole crate with all features enabled. You can either look at the
source code or build documentation for the features you use by running cargo doc --open
in your project directory.
To locally build documentation only for this crate, run cargo doc -p msp430-periph --no-deps --open
Re-exports
pub use utils; |
Modules
devices | All devices |
peripherals | All peripherals |