mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-11 22:36:48 +00:00
24 lines
520 B
Rust
24 lines
520 B
Rust
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
//! The framebuffer of Asterinas.
|
|
#![no_std]
|
|
#![deny(unsafe_code)]
|
|
|
|
extern crate alloc;
|
|
|
|
mod console;
|
|
mod framebuffer;
|
|
mod pixel;
|
|
|
|
use component::{init_component, ComponentInitError};
|
|
pub use console::{FramebufferConsole, CONSOLE_NAME, FRAMEBUFFER_CONSOLE};
|
|
pub use framebuffer::{FrameBuffer, FRAMEBUFFER};
|
|
pub use pixel::{Pixel, PixelFormat, RenderedPixel};
|
|
|
|
#[init_component]
|
|
fn init() -> Result<(), ComponentInitError> {
|
|
framebuffer::init();
|
|
console::init();
|
|
Ok(())
|
|
}
|