Crates.io | cyt4dn |
lib.rs | cyt4dn |
version | 0.0.1 |
source | src |
created_at | 2023-10-25 23:07:56.57355 |
updated_at | 2023-10-25 23:07:56.57355 |
description | Peripheral access crate for cyt4dn T2G family |
homepage | |
repository | https://github.com/Infineon/traveo-t2g-pal/tree/develop/pal_crates/cyt4dn |
max_upload_size | |
id | 1013772 |
size | 5,398 |
cyt4dn
crate | svd version |
---|---|
cyt4dn_a | 1.0.0 |
cyt4dn_b | 1.0.0 |
cyt4dn_c | 1.0.0 |
In your own project's Cargo.toml
:
[dependencies.cyt4dn]
version = "0.0.1"
features = ["<one of the supported revisions>", "rt", "critical-section"]
The rt
feature is optional.
See svd2rust for details.
The critical-section
feature is optional.
See critical-section for details.
Usage of device meta-package in your code:
use cyt4dn as pac;
let mut peripherals = pac::Peripherals::take().unwrap();
By default cyt4dn refers to the latest revision of the supported crates, if your project requires a specific revision, you can pass it as a feature in your project's cargo.toml file. This way of using meta package you dont have to change your project code each time you change the revision.