mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-26 11:48:27 +08:00
runtime.rs/rtio.rs: style
This commit is contained in:
parent
6799bb097a
commit
fec34d605e
@ -35,11 +35,9 @@ pub unsafe fn rtio_o_data_write(w: u32) {
|
|||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub unsafe fn rtio_i_data_read() -> u32 {
|
pub unsafe fn rtio_i_data_read() -> u32 {
|
||||||
read_volatile(
|
read_volatile(
|
||||||
csr::rtio::I_DATA_ADDR.offset((csr::rtio::I_DATA_SIZE - 1) as isize)
|
csr::rtio::I_DATA_ADDR.offset((csr::rtio::I_DATA_SIZE - 1) as isize))
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[inline(never)]
|
#[inline(never)]
|
||||||
unsafe fn process_exceptional_status(timestamp: i64, channel: u32, status: u32) {
|
unsafe fn process_exceptional_status(timestamp: i64, channel: u32, status: u32) {
|
||||||
if status & RTIO_O_STATUS_FULL != 0 {
|
if status & RTIO_O_STATUS_FULL != 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user