2020-03-12 12:10:18 -05:00
|
|
|
//! This crate provides vga specific functions, data structures,
|
|
|
|
//! and access to various registers.
|
|
|
|
|
|
|
|
#![no_std]
|
|
|
|
#![warn(missing_docs)]
|
|
|
|
|
2020-03-12 12:34:13 -05:00
|
|
|
pub mod colors;
|
|
|
|
mod configurations;
|
|
|
|
mod fonts;
|
|
|
|
mod registers;
|
2020-03-12 12:10:18 -05:00
|
|
|
pub mod vga;
|
2020-03-12 12:34:13 -05:00
|
|
|
mod writers;
|
2020-03-12 12:10:18 -05:00
|
|
|
|
2020-03-12 12:16:27 -05:00
|
|
|
pub use self::vga::VGA;
|
2020-03-12 12:34:13 -05:00
|
|
|
pub use self::writers::{Graphics640x480x16, Text40x25, Text40x50, Text80x25};
|
2020-03-12 12:10:18 -05:00
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
mod tests {
|
|
|
|
#[test]
|
|
|
|
fn it_works() {
|
|
|
|
assert_eq!(2 + 2, 4);
|
|
|
|
}
|
|
|
|
}
|