mirror of
https://github.com/LegitCamper/picocalc-os-rs.git
synced 2025-12-27 07:45:28 +00:00
clean
This commit is contained in:
@@ -39,7 +39,6 @@ use crate::{
|
|||||||
storage::{SDCARD, SdCard},
|
storage::{SDCARD, SdCard},
|
||||||
ui::{SELECTIONS, clear_selection, ui_handler},
|
ui::{SELECTIONS, clear_selection, ui_handler},
|
||||||
};
|
};
|
||||||
use userlib_sys::EntryFn;
|
|
||||||
use bumpalo::Bump;
|
use bumpalo::Bump;
|
||||||
use core::sync::atomic::{AtomicBool, Ordering};
|
use core::sync::atomic::{AtomicBool, Ordering};
|
||||||
use embassy_executor::{Executor, Spawner};
|
use embassy_executor::{Executor, Spawner};
|
||||||
@@ -73,6 +72,7 @@ use embedded_hal_bus::spi::ExclusiveDevice;
|
|||||||
use embedded_sdmmc::SdCard as SdmmcSdCard;
|
use embedded_sdmmc::SdCard as SdmmcSdCard;
|
||||||
use static_cell::StaticCell;
|
use static_cell::StaticCell;
|
||||||
use talc::*;
|
use talc::*;
|
||||||
|
use userlib_sys::EntryFn;
|
||||||
use {defmt_rtt as _, panic_probe as _};
|
use {defmt_rtt as _, panic_probe as _};
|
||||||
|
|
||||||
embassy_rp::bind_interrupts!(struct Irqs {
|
embassy_rp::bind_interrupts!(struct Irqs {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ extern crate alloc;
|
|||||||
pub use alloc::format;
|
pub use alloc::format;
|
||||||
use core::alloc::{GlobalAlloc, Layout};
|
use core::alloc::{GlobalAlloc, Layout};
|
||||||
use rand_core::RngCore;
|
use rand_core::RngCore;
|
||||||
|
use userlib_sys::{RngRequest, keyboard::KeyEvent};
|
||||||
pub use userlib_sys::{keyboard, print};
|
pub use userlib_sys::{keyboard, print};
|
||||||
use userlib_sys::{keyboard::KeyEvent, RngRequest};
|
|
||||||
|
|
||||||
#[global_allocator]
|
#[global_allocator]
|
||||||
static ALLOC: Alloc = Alloc;
|
static ALLOC: Alloc = Alloc;
|
||||||
@@ -48,11 +48,11 @@ pub mod display {
|
|||||||
use core::sync::atomic::{AtomicBool, Ordering};
|
use core::sync::atomic::{AtomicBool, Ordering};
|
||||||
|
|
||||||
use embedded_graphics::{
|
use embedded_graphics::{
|
||||||
|
Pixel,
|
||||||
geometry::{Dimensions, Point},
|
geometry::{Dimensions, Point},
|
||||||
pixelcolor::Rgb565,
|
pixelcolor::Rgb565,
|
||||||
prelude::{DrawTarget, Size},
|
prelude::{DrawTarget, Size},
|
||||||
primitives::Rectangle,
|
primitives::Rectangle,
|
||||||
Pixel,
|
|
||||||
};
|
};
|
||||||
use userlib_sys::CPixel;
|
use userlib_sys::CPixel;
|
||||||
|
|
||||||
@@ -269,7 +269,7 @@ pub mod fs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub mod audio {
|
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]) {
|
pub fn send_audio_buffer(buf: &[u8]) {
|
||||||
userlib_sys::send_audio_buffer(buf.as_ptr(), buf.len())
|
userlib_sys::send_audio_buffer(buf.as_ptr(), buf.len())
|
||||||
|
|||||||
Reference in New Issue
Block a user