cargo fmt

This commit is contained in:
2026-01-15 16:56:50 +08:00
committed by sb10q
parent a8cf7644a2
commit 5bd6fe0ad5
3 changed files with 8 additions and 8 deletions

View File

@@ -1,10 +1,12 @@
use alloc::{string::String, vec::Vec};
use core::{mem, ptr};
use libcortex_a9::mmu;
use cslice::CSlice;
use libcortex_a9::mmu;
use super::{KERNEL_CHANNEL_0TO1, KERNEL_CHANNEL_1TO0, Message, rtio, core1::{__rtio_page, __dma_page}};
use super::{KERNEL_CHANNEL_0TO1, KERNEL_CHANNEL_1TO0, Message,
core1::{__dma_page, __rtio_page},
rtio};
use crate::{artiq_raise, pl::csr};
#[repr(C)]

View File

@@ -4,9 +4,9 @@ use cslice::CSlice;
use libcortex_a9::{asm, mmu};
use vcell::VolatileCell;
use super::core1::{__batch_page, __rtio_page};
#[cfg(has_drtio)]
use super::{KERNEL_CHANNEL_0TO1, KERNEL_CHANNEL_1TO0, Message};
use super::{core1::__rtio_page, core1::__batch_page};
use crate::{artiq_raise, pl::csr, rtio_core};
pub const RTIO_O_STATUS_WAIT: i32 = 1;
@@ -170,7 +170,6 @@ fn await_reply_status() -> i32 {
}
}
#[link_section = "rtio_output"]
pub extern "C" fn output(target: i32, data: i32) {
unsafe {

View File

@@ -1,12 +1,11 @@
use core::ptr::{read_volatile, write_volatile};
use cslice::CSlice;
use libcortex_a9::mmu;
#[cfg(has_drtio)]
use super::{KERNEL_CHANNEL_0TO1, KERNEL_CHANNEL_1TO0, Message};
use crate::{artiq_raise, pl::csr, rtio_core, kernel::core1::__rtio_page};
use crate::{artiq_raise, kernel::core1::__rtio_page, pl::csr, rtio_core};
pub const RTIO_O_STATUS_WAIT: u8 = 1;
pub const RTIO_O_STATUS_UNDERFLOW: u8 = 2;
@@ -100,7 +99,7 @@ unsafe fn process_exceptional_status(channel: i32, status: u8) {
}
}
#[link_section="rtio_output"]
#[link_section = "rtio_output"]
pub extern "C" fn output(target: i32, data: i32) {
unsafe {
csr::rtio::target_write(target as u32);
@@ -113,7 +112,7 @@ pub extern "C" fn output(target: i32, data: i32) {
}
}
#[link_section="rtio_output_wide"]
#[link_section = "rtio_output_wide"]
pub extern "C" fn output_wide(target: i32, data: &CSlice<i32>) {
unsafe {
csr::rtio::target_write(target as u32);