2020-04-13 13:48:08 +08:00
|
|
|
use libcortex_a9::sync_channel;
|
|
|
|
|
2020-04-13 17:31:17 +08:00
|
|
|
pub static mut KERNEL_BUFFER: [u8; 16384] = [0; 16384];
|
|
|
|
|
2020-04-13 13:48:08 +08:00
|
|
|
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 {}
|
|
|
|
}
|