mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
quiet down poll loop
This commit is contained in:
parent
fb804d1ac8
commit
1f72c8cd38
1 changed files with 3 additions and 2 deletions
|
|
@ -687,7 +687,8 @@ fn main() {
|
|||
while sss.inner.is_none() {
|
||||
xous::yield_slice();
|
||||
}
|
||||
|
||||
// measure memory at boot
|
||||
get_free_pages();
|
||||
let total_ram = sss.inner.as_ref().unwrap().sram_size;
|
||||
// Binary heap for storing the view of the memory allocations.
|
||||
sss.inner.as_mut().unwrap().hard_oom_alloc_heap = Some(BinaryHeap::with_capacity(total_ram / PAGE_SIZE));
|
||||
|
|
@ -711,7 +712,7 @@ fn main() {
|
|||
let conn = conn.clone();
|
||||
move || {
|
||||
loop {
|
||||
sleep(Duration::from_millis(2500));
|
||||
sleep(Duration::from_millis(10_200));
|
||||
xous::send_message(conn, Message::new_scalar(Opcode::Test0.to_usize().unwrap(), 0, 0, 0, 0))
|
||||
.ok();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue