Implement full SSD1306 OLED display support: - Splash screen on boot (1.5s) with project name, version, board - Dashboard showing radio state, config, counters, RSSI/SNR - RSSI history sparkline (64-sample ring buffer, 2px-wide bars) - DisplayOn/DisplayOff host commands routed via dedicated channel - Pure render functions against generic DrawTarget (no hardware coupling) - Display on/off control bypasses radio task entirely Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
24 lines
717 B
Django/Jinja
24 lines
717 B
Django/Jinja
pub enum CpuInterruptLevel {
|
|
Level1,
|
|
Level2,
|
|
Level3,
|
|
Level4,
|
|
Level5,
|
|
Level6,
|
|
Level7,
|
|
}
|
|
|
|
impl CpuInterruptLevel {
|
|
pub fn mask(&self) -> u32 {
|
|
match &self {
|
|
CpuInterruptLevel::Level1 => {{ XCHAL_INTLEVEL1_MASK }}u32,
|
|
CpuInterruptLevel::Level2 => {{ XCHAL_INTLEVEL2_MASK }}u32,
|
|
CpuInterruptLevel::Level3 => {{ XCHAL_INTLEVEL3_MASK }}u32,
|
|
CpuInterruptLevel::Level4 => {{ XCHAL_INTLEVEL4_MASK }}u32,
|
|
CpuInterruptLevel::Level5 => {{ XCHAL_INTLEVEL5_MASK }}u32,
|
|
CpuInterruptLevel::Level6 => {{ XCHAL_INTLEVEL6_MASK }}u32,
|
|
CpuInterruptLevel::Level7 => {{ XCHAL_INTLEVEL7_MASK }}u32,
|
|
}
|
|
}
|
|
}
|