Comprehensive Rust(Ukrainian) 202412Використовуйте його для друку поточного часу на послідовній консолі. Ви можете використовувати крейт chrono для форматування дати/часу. 2. Використовуйте регістр збігу та необроблений стан переривання для version = "0.1.0" edition = "2021" publish = false [dependencies] arm-gic = "0.1.2" bitflags = "2.6.0" chrono = { version = "0.4.38", default-features = false } log = "0.4.22" smccc = "0.1.1" spin = "0.9.8" use crate::pl031::Rtc; use arm_gic::gicv3::{IntId, Trigger}; use arm_gic::{irq_enable, wfi}; use chrono::{TimeZone, Utc}; use core::hint::spin_loop; use crate::pl011::Uart; use arm_gic::gicv3::GicV3; use0 码力 | 396 页 | 1.08 MB | 11 月前3
Comprehensive Rust(Persian ) 202412� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � . � � � � � � � � � � crate chrono � � � � � � � � � � � � date/time � � � � � � � � � � � . 2 . Use the match register and raw interrupt " edition = "2021 " publish = false ] dependencies [ arm-gic = "0.1.1 " bitflags = "2.6.0 " chrono = { version = "0.4.38", default-features = false { log = "0.4.22 " smccc = "0.1.1 " spin = "0.9 crate::pl031::Rtc ; use arm_gic::gicv3::{IntId, Trigger { ; use arm_gic::{irq_enable, wfi { ; use chrono::{TimeZone, Utc { ; use core::hint::spin_loop ; use crate::pl011::Uart ; use arm_gic::gicv3::GicV30 码力 | 393 页 | 987.97 KB | 11 月前3
Comprehensive Rust(English) 202412write a driver for it. 1. Use it to print the current time to the serial console. You can use the chrono crate for date/time formatting. 2. Use the match register and raw interrupt status to busy-wait version = "0.1.0" edition = "2021" publish = false [dependencies] arm-gic = "0.1.2" bitflags = "2.6.0" chrono = { version = "0.4.38", default-features = false } log = "0.4.22" smccc = "0.1.1" spin = "0.9.8" use crate::pl031::Rtc; use arm_gic::gicv3::{IntId, Trigger}; use arm_gic::{irq_enable, wfi}; use chrono::{TimeZone, Utc}; use core::hint::spin_loop; use crate::pl011::Uart; use arm_gic::gicv3::GicV3; use0 码力 | 382 页 | 1.00 MB | 11 月前3
Comprehensive Rust ?write a driver for it. 1. Use it to print the current time to the serial console. You can use the chrono crate for date/time formatting. 2. Use the match register and raw interrupt status to busy-wait version = "0.1.0" edition = "2021" publish = false [dependencies] arm-gic = "0.1.0" bitflags = "2.5.0" chrono = { version = "0.4.38", default-features = false } log = "0.4.21" smccc = "0.1.1" spin = "0.9.8" use crate::pl031::Rtc; use arm_gic::gicv3::{IntId, Trigger}; use arm_gic::{irq_enable, wfi}; use chrono::{TimeZone, Utc}; use core::hint::spin_loop; use crate::pl011::Uart; use arm_gic::gicv3::GicV3; use0 码力 | 378 页 | 1009.46 KB | 1 年前3
Comprehensive Rust(简体中文) 202412QEMU aarch64 虚拟机在 0x9010000 地址处 配备了 PL031 实时时钟。对于本练习,应该为其编写驱动 程序。 1. 使用该时钟可将当前时间输出到串行控制台。您可以使用 chrono crate 设置日期/时间格式。 2. 通过匹配寄存器和原始中断状态,使得系统在某段指定的时间内一直进行繁忙等待(例如 3 秒后)。 (在循环操作中调用 core::hint::spin_loop。) version = "0.1.0" edition = "2021" publish = false [dependencies] arm-gic = "0.1.0" bitflags = "2.5.0" chrono = { version = "0.4.37", default-features = false } log = "0.4.21" smccc = "0.1.1" spin = "0.9.8" use crate::pl031::Rtc; use arm_gic::gicv3::{IntId, Trigger}; use arm_gic::{irq_enable, wfi}; use chrono::{TimeZone, Utc}; use core::hint::spin_loop; use crate::pl011::Uart; use arm_gic::gicv3::GicV3; use0 码力 | 359 页 | 1.33 MB | 11 月前3
Comprehensive Rust(Español) 202412controlador para el reloj. 1. Úsalo para imprimir la hora en la consola serie. Puedes usar el crate chrono para dar formato a la fecha y la hora. 2. Utiliza el registro de coincidencias y el estado de interrupción version = "0.1.0" edition = "2021" publish = false [dependencies] arm-gic = "0.1.0" bitflags = "2.6.0" chrono = { version = "0.4.38", default-features = false } log = "0.4.22" smccc = "0.1.1" spin = "0.9.8" use crate::pl031::Rtc; use arm_gic::gicv3::{IntId, Trigger}; use arm_gic::{irq_enable, wfi}; use chrono::{TimeZone, Utc}; use core::hint::spin_loop; use crate::pl011::Uart; use arm_gic::gicv3::GicV3; use0 码力 | 389 页 | 1.04 MB | 11 月前3
Comprehensive Rust(繁体中文)驅動程式 QEMU aarch64 虛擬機器的 PL031 即時時鐘位於 0x9010000。在這個練習中,您應為該時鐘編寫驅動 程式。 1. 使用該時鐘將目前時間顯示至序列控制台。您可以使用 chrono Crate 設定日期/時間格式。 2. 使 用 比 對 暫 存 器 和 原 始 中 斷 狀 態,忙 碌 等 待 至 指 定 時 間,例 如 未 來 3 秒 (呼 叫 迴 圈 中 的 core::hint::spin_loop)。 version = "0.1.0" edition = "2021" publish = false [dependencies] arm-gic = "0.1.0" bitflags = "2.4.2" chrono = { version = "0.4.34", default-features = false } log = "0.4.21" smccc = "0.1.1" spin = "0.9.8" use crate::pl031::Rtc; use arm_gic::gicv3::{IntId, Trigger}; use arm_gic::{irq_enable, wfi}; use chrono::{TimeZone, Utc}; use core::hint::spin_loop; use crate::pl011::Uart; use arm_gic::gicv3::GicV3; use0 码力 | 358 页 | 1.41 MB | 11 月前3
Comprehensive Rust(Português do Brasil) 202412um driver para ele. 1. Use-o para imprimir a hora atual no console serial. Você pode usar o crate chrono para formatação de data/hora. 2. Use o registrador de comparação e o status de interrupção bruto version = "0.1.0" edition = "2021" publish = false [dependencies] arm-gic = "0.1.0" bitflags = "2.6.0" chrono = { version = "0.4.38", default-features = false } log = "0.4.22" smccc = "0.1.1" spin = "0.9.8" use crate::pl031::Rtc; use arm_gic::gicv3::{IntId, Trigger}; use arm_gic::{irq_enable, wfi}; use chrono::{TimeZone, Utc}; use core::hint::spin_loop; use crate::pl011::Uart; use arm_gic::gicv3::GicV3; use0 码力 | 389 页 | 1.05 MB | 11 月前3
Comprehensive Rust(繁体中文) 202406驅動程式 QEMU aarch64 虛擬機器的 PL031 即時時鐘位於 0x9010000。在這個練習中,您應為該時鐘編寫驅動 程式。 1. 使用該時鐘將目前時間顯示至序列控制台。您可以使用 chrono Crate 設定日期/時間格式。 2. 使 用 比 對 暫 存 器 和 原 始 中 斷 狀 態,忙 碌 等 待 至 指 定 時 間,例 如 未 來 3 秒 (呼 叫 迴 圈 中 的 core::hint::spin_loop)。 version = "0.1.0" edition = "2021" publish = false [dependencies] arm-gic = "0.1.0" bitflags = "2.4.2" chrono = { version = "0.4.34", default-features = false } log = "0.4.21" smccc = "0.1.1" spin = "0.9.8" use crate::pl031::Rtc; use arm_gic::gicv3::{IntId, Trigger}; use arm_gic::{irq_enable, wfi}; use chrono::{TimeZone, Utc}; use core::hint::spin_loop; use crate::pl011::Uart; use arm_gic::gicv3::GicV3; use0 码力 | 356 页 | 1.41 MB | 1 年前3
Comprehensive Rust(한국어) 202412For this exercise, you should write a driver for it. 1. 직렬 콘솔에 현재 시간을 출력하는 데 사용합니다. 날짜/시간 형식지정에는 chrono 크레이트를 사용할 수 있습니다. 2. 일치 레지스터와 원시 인터럽트 상태를 사용하여 특정 시간 (예: 향후 3 초) 까지 바쁜 대기합니다. 루프 내에서 core::hint::spin_loop version = "0.1.0" edition = "2021" publish = false [dependencies] arm-gic = "0.1.0" bitflags = "2.4.2" chrono = { version = "0.4.35", default-features = false } log = "0.4.21" smccc = "0.1.1" spin = "0.9.8" use crate::pl031::Rtc; use arm_gic::gicv3::{IntId, Trigger}; use arm_gic::{irq_enable, wfi}; use chrono::{TimeZone, Utc}; use core::hint::spin_loop; use crate::pl011::Uart; use arm_gic::gicv3::GicV3; use0 码力 | 369 页 | 1.29 MB | 11 月前3
共 12 条
- 1
- 2













