33 lines
704 B
Rust
33 lines
704 B
Rust
//! Some stuff used at several places
|
|
|
|
use alloc::vec::Vec;
|
|
|
|
#[allow(unused)]
|
|
pub(crate) fn get_rx_feature_list() -> Vec<&'static str> {
|
|
let mut features = alloc::vec![];
|
|
if cfg!(feature = "cam") {
|
|
features.push("cam");
|
|
}
|
|
if cfg!(feature = "denm") {
|
|
features.push("denm");
|
|
}
|
|
if cfg!(feature = "spat") {
|
|
features.push("map");
|
|
features.push("spat");
|
|
}
|
|
|
|
features
|
|
}
|
|
|
|
#[allow(unused)]
|
|
pub(crate) fn get_tx_feature_list() -> Vec<&'static str> {
|
|
let mut features = alloc::vec![];
|
|
if cfg!(feature = "cam_tx") {
|
|
features.push("auto-cam");
|
|
}
|
|
if cfg!(feature = "uart") {
|
|
features.push("uart-tx");
|
|
}
|
|
|
|
features
|
|
}
|