Skip to content

Commit

Permalink
Removed old test code from test V-App
Browse files Browse the repository at this point in the history
  • Loading branch information
bigspider committed Oct 16, 2024
1 parent f9d702b commit 8924a5b
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions apps/test/app/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#![feature(start)]
#![cfg_attr(target_arch = "riscv32", no_std, no_main)]

use core::ptr::addr_of;

#[cfg(target_arch = "riscv32")]
use sdk::fatal;

Expand All @@ -14,8 +12,6 @@ mod handlers;
use commands::Command;
use handlers::*;

use alloc::vec;

// Temporary to force the creation of a data section
#[used]
#[no_mangle]
Expand Down Expand Up @@ -47,24 +43,9 @@ pub fn _start(_argc: isize, _argv: *const *const u8) -> isize {
pub fn main(_: isize, _: *const *const u8) -> isize {
sdk::rust_init_heap();

// TODO: remove
unsafe {
core::ptr::read_volatile(addr_of!(APP_NAME));
}

// TODO: remove
// test code to make sure that vector allocations are emitted
let x = vec![1, 2, 3];
unsafe {
core::ptr::read_volatile(&x);
}

sdk::ux::ux_idle();
loop {
let msg = sdk::xrecv(256);
// let buffer = comm::receive_message().unwrap(); // TODO: what to do on error?

// sdk::ux::app_loading_start("Handling request...\x00");

if msg.is_empty() {
sdk::exit(0);
Expand Down

0 comments on commit 8924a5b

Please sign in to comment.