mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
cleanup warnings
This commit is contained in:
parent
bdbe8f8288
commit
ec675eefb4
6 changed files with 6 additions and 6 deletions
|
|
@ -1,3 +1,5 @@
|
|||
#![allow(dead_code)]
|
||||
|
||||
use crate::op::{HEIGHT, WIDTH};
|
||||
use blitstr::{ClipRect, Cursor, GlyphStyle};
|
||||
use core::cmp::{max, min};
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ use utralib::generated::*;
|
|||
use xous::MemoryRange;
|
||||
|
||||
const FB_WIDTH_WORDS: usize = 11;
|
||||
const FB_WIDTH_PIXELS: usize = 336;
|
||||
// const FB_WIDTH_PIXELS: usize = 336;
|
||||
const FB_LINES: usize = 536;
|
||||
const FB_SIZE: usize = FB_WIDTH_WORDS * FB_LINES; // 44 bytes by 536 lines
|
||||
const CONFIG_CLOCK_FREQUENCY: u32 = 100_000_000;
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ fn xmain() -> ! {
|
|||
display.redraw();
|
||||
|
||||
let sid = xous::create_server_with_address(b"graphics-server ").unwrap();
|
||||
// info!("GFX: Server listening on address {:?}", sid);
|
||||
info!("GFX: Server listening on address {:?}", sid);
|
||||
// ::debug_here::debug_here!();
|
||||
loop {
|
||||
let msg = xous::receive_message(sid).unwrap();
|
||||
|
|
|
|||
|
|
@ -12,9 +12,6 @@ pub const HEIGHT: i16 = 536;
|
|||
/// For passing frame buffer references
|
||||
pub type LcdFB = [u32; LCD_FRAME_BUF_SIZE];
|
||||
|
||||
/// For storing a full-row wide blit pattern
|
||||
pub type BlitRow = [u32; LCD_WORDS_PER_LINE];
|
||||
|
||||
fn put_pixel(fb: &mut LcdFB, x: i16, y: i16, color: PixelColor) {
|
||||
let mut clip_y: usize = y as usize;
|
||||
if clip_y >= LCD_LINES {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#![allow(dead_code)]
|
||||
|
||||
use xous::{SID, CID};
|
||||
use hash32_derive::*;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
#![cfg_attr(target_os = "none", no_std)]
|
||||
#![cfg_attr(target_os = "none", no_main)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate hash32_derive;
|
||||
|
||||
mod api;
|
||||
|
|
|
|||
Loading…
Reference in a new issue