mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add platform implementations of the frame buffer trait
This commit is contained in:
parent
b352ecb667
commit
8acb9e7521
3 changed files with 15 additions and 0 deletions
|
|
@ -3,3 +3,6 @@ pub const HEIGHT: usize = LINES as usize;
|
|||
pub const WIDTH: isize = 128;
|
||||
pub const FB_SIZE: usize = LINES as usize * WIDTH as usize / core::mem::size_of::<u32>();
|
||||
pub const FB_WIDTH_WORDS: usize = WIDTH as usize / core::mem::size_of::<u32>();
|
||||
|
||||
// For passing frame buffer references
|
||||
pub type FbRaw = [u32];
|
||||
|
|
|
|||
|
|
@ -1,2 +1,11 @@
|
|||
pub const LINES: isize = 536;
|
||||
pub const WIDTH: isize = 336;
|
||||
pub const HEIGHT: isize = LINES;
|
||||
|
||||
pub const FB_WIDTH_WORDS: usize = 11;
|
||||
pub const FB_WIDTH_PIXELS: usize = WIDTH as usize;
|
||||
pub const FB_LINES: usize = LINES as usize;
|
||||
pub const FB_SIZE: usize = FB_WIDTH_WORDS * FB_LINES; // 44 bytes by 536 lines
|
||||
|
||||
// For passing frame buffer references
|
||||
pub type FbRaw = [u32];
|
||||
|
|
|
|||
|
|
@ -6,3 +6,6 @@ pub const FB_WIDTH_WORDS: usize = 11;
|
|||
pub const FB_WIDTH_PIXELS: usize = WIDTH as usize;
|
||||
pub const FB_LINES: usize = LINES as usize;
|
||||
pub const FB_SIZE: usize = FB_WIDTH_WORDS * FB_LINES; // 44 bytes by 536 lines
|
||||
|
||||
// For passing frame buffer references
|
||||
pub type FbRaw = [u32];
|
||||
|
|
|
|||
Loading…
Reference in a new issue