forked from M-Labs/artiq-zynq
12 lines
254 B
Rust
12 lines
254 B
Rust
use libcortex_a9::sync_channel;
|
|
|
|
pub static mut KERNEL_BUFFER: [u8; 16384] = [0; 16384];
|
|
|
|
pub fn main(mut sc_tx: sync_channel::Sender<usize>, mut sc_rx: sync_channel::Receiver<usize>) {
|
|
for i in sc_rx {
|
|
sc_tx.send(*i * *i);
|
|
}
|
|
|
|
loop {}
|
|
}
|