fix quantum timer to 10ms; adjust api names

This commit is contained in:
bunnie 2024-05-22 02:25:03 +08:00
parent b1e3e81a6f
commit 1fa0a3de20

View file

@ -1,4 +1,5 @@
mod api;
mod hw;
use api::*;
use cramium_hal::{
@ -88,7 +89,7 @@ fn main() {
log_server::init_wait().unwrap();
log::set_max_level(log::LevelFilter::Debug);
let xns = xous_api_names::XousNames::new().unwrap();
let xns = xous_names::XousNames::new().unwrap();
let sid = xns.register_name(cram_hal_service::SERVER_NAME_CRAM_HAL, None).expect("can't register server");
let mut ifram_allocs = [Vec::new(), Vec::new()];
@ -160,7 +161,7 @@ fn main() {
#[rustfmt::skip]
let timer_code = pio_proc::pio_asm!(
"restart:",
"set x, 31", // 4 cycles overhead gets us to 10 iterations per pulse
"set x, 6", // 4 cycles overhead gets us to 10 iterations per pulse
"waitloop:",
"jmp x-- waitloop",
"irq set 0",