This commit is contained in:
2025-11-17 18:27:32 -07:00
parent d77320d445
commit 02877d03a6
2 changed files with 4 additions and 4 deletions

View File

@@ -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 {

View File

@@ -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())