make platform directory for graphics

trying to keep it as platform neutral as possible but it seems
we need to be able to know the size of the framebuffer at least
This commit is contained in:
bunnie 2025-02-11 16:23:45 +08:00
parent 5ed3f41bea
commit 3890008af1
3 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,3 @@
pub const LINES: isize = 128;
pub const WIDTH: isize = 128;
pub const FB_SIZE: usize = LINES as usize * WIDTH as usize / core::mem::size_of::<u32>();

View file

@ -0,0 +1,2 @@
pub const LINES: isize = 536;
pub const WIDTH: isize = 336;

View file

@ -0,0 +1,9 @@
#[cfg(any(feature = "board-baosec", feature = "hosted-baosec"))]
mod baosec;
#[cfg(any(feature = "board-baosec", feature = "hosted-baosec"))]
pub use baosec::*;
#[cfg(feature = "board-baosor")]
mod baosor;
#[cfg(feature = "board-baosor")]
pub use baosor::*;