mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
fix quantum timer to 10ms; adjust api names
This commit is contained in:
parent
b1e3e81a6f
commit
1fa0a3de20
1 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
mod api;
|
mod api;
|
||||||
|
mod hw;
|
||||||
|
|
||||||
use api::*;
|
use api::*;
|
||||||
use cramium_hal::{
|
use cramium_hal::{
|
||||||
|
|
@ -88,7 +89,7 @@ fn main() {
|
||||||
log_server::init_wait().unwrap();
|
log_server::init_wait().unwrap();
|
||||||
log::set_max_level(log::LevelFilter::Debug);
|
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 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()];
|
let mut ifram_allocs = [Vec::new(), Vec::new()];
|
||||||
|
|
@ -160,7 +161,7 @@ fn main() {
|
||||||
#[rustfmt::skip]
|
#[rustfmt::skip]
|
||||||
let timer_code = pio_proc::pio_asm!(
|
let timer_code = pio_proc::pio_asm!(
|
||||||
"restart:",
|
"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:",
|
"waitloop:",
|
||||||
"jmp x-- waitloop",
|
"jmp x-- waitloop",
|
||||||
"irq set 0",
|
"irq set 0",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue