diff --git a/kernel/src/main.rs b/kernel/src/main.rs index f32bfca..66570c7 100644 --- a/kernel/src/main.rs +++ b/kernel/src/main.rs @@ -39,7 +39,6 @@ use crate::{ storage::{SDCARD, SdCard}, ui::{SELECTIONS, clear_selection, ui_handler}, }; -use userlib_sys::EntryFn; use bumpalo::Bump; use core::sync::atomic::{AtomicBool, Ordering}; use embassy_executor::{Executor, Spawner}; @@ -73,6 +72,7 @@ use embedded_hal_bus::spi::ExclusiveDevice; use embedded_sdmmc::SdCard as SdmmcSdCard; use static_cell::StaticCell; use talc::*; +use userlib_sys::EntryFn; use {defmt_rtt as _, panic_probe as _}; embassy_rp::bind_interrupts!(struct Irqs { diff --git a/userlib/src/lib.rs b/userlib/src/lib.rs index 43aad4a..6c88cb2 100644 --- a/userlib/src/lib.rs +++ b/userlib/src/lib.rs @@ -6,8 +6,8 @@ extern crate alloc; pub use alloc::format; use core::alloc::{GlobalAlloc, Layout}; use rand_core::RngCore; +use userlib_sys::{RngRequest, keyboard::KeyEvent}; pub use userlib_sys::{keyboard, print}; -use userlib_sys::{keyboard::KeyEvent, RngRequest}; #[global_allocator] static ALLOC: Alloc = Alloc; @@ -48,11 +48,11 @@ pub mod display { use core::sync::atomic::{AtomicBool, Ordering}; use embedded_graphics::{ + Pixel, geometry::{Dimensions, Point}, pixelcolor::Rgb565, prelude::{DrawTarget, Size}, primitives::Rectangle, - Pixel, }; use userlib_sys::CPixel; @@ -269,7 +269,7 @@ pub mod fs { } pub mod audio { - pub use userlib_sys::{audio_buffer_ready, AUDIO_BUFFER_LEN, AUDIO_BUFFER_SAMPLES}; + pub use userlib_sys::{AUDIO_BUFFER_LEN, AUDIO_BUFFER_SAMPLES, audio_buffer_ready}; pub fn send_audio_buffer(buf: &[u8]) { userlib_sys::send_audio_buffer(buf.as_ptr(), buf.len())