Squashed 'vendor/ruvector/' content from commit b64c2172

git-subtree-dir: vendor/ruvector
git-subtree-split: b64c21726f2bb37286d9ee36a7869fef60cc6900
This commit is contained in:
ruv
2026-02-28 14:39:40 -05:00
commit d803bfe2b1
7854 changed files with 3522914 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
//! ROS3 Embedded Systems Support
//!
//! Provides support for embedded systems using Embassy and RTIC
/// Embedded task priority
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum EmbeddedPriority {
Low = 0,
Normal = 1,
High = 2,
Critical = 3,
}
/// Embedded system configuration
#[derive(Debug, Clone)]
pub struct EmbeddedConfig {
pub tick_rate_hz: u32,
pub stack_size: usize,
}
impl Default for EmbeddedConfig {
fn default() -> Self {
Self {
tick_rate_hz: 1000,
stack_size: 4096,
}
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_embedded_config() {
let config = EmbeddedConfig::default();
assert_eq!(config.tick_rate_hz, 1000);
assert_eq!(config.stack_size, 4096);
}
}