use C abi for syscalls

This commit is contained in:
2025-09-26 23:39:19 -06:00
parent bf3b37783f
commit 7bd6012748
5 changed files with 61 additions and 52 deletions

View File

@@ -14,6 +14,7 @@ pub mod keyboard {
}
#[derive(Debug)]
#[repr(C)]
pub struct KeyEvent {
pub key: KeyCode,
pub state: KeyState,
@@ -22,6 +23,7 @@ pub mod keyboard {
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(u8)]
pub enum KeyState {
Idle = 0,
Pressed = 1,