use strum for abicalltable

This commit is contained in:
2025-09-26 11:15:42 -06:00
parent d00e644100
commit 07b4905a06
6 changed files with 47 additions and 22 deletions

View File

@@ -9,6 +9,7 @@ use embedded_graphics::{
pixelcolor::{Rgb565, RgbColor},
};
pub use shared::keyboard::{KeyCode, KeyEvent, KeyState, Modifiers};
use strum::EnumIter;
pub type EntryFn = fn();
@@ -17,7 +18,7 @@ pub type EntryFn = fn();
pub static mut CALL_ABI_TABLE: [usize; CallAbiTable::COUNT] = [0; CallAbiTable::COUNT];
#[repr(usize)]
#[derive(Clone, Copy)]
#[derive(Clone, Copy, EnumIter)]
pub enum CallAbiTable {
Print = 0,
Sleep = 1,