Merge commit 'd803bfe2b1fe7f5e219e50ac20d6801a0a58ac75' as 'vendor/ruvector'

This commit is contained in:
ruv
2026-02-28 14:39:40 -05:00
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);
}
}