This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from crates.io | |
extern crate mmap; | |
extern crate libc; | |
mod fpga_awg; | |
fn main() { | |
let mut awg = fpga_awg::fpgaAwg::new(); | |
let mut params: fpga_awg::awgParam = fpga_awg::awgParam::default(); | |
let mut data: [i32; fpga_awg::n] = [0; fpga_awg::n]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::ptr; | |
use std::fs; | |
use std::io::{Write, SeekFrom, Seek}; | |
use std::os::unix::prelude::AsRawFd; | |
use mmap::{MemoryMap, MapOption}; | |
use libc; | |
use std::f32; | |
use std::default::Default; | |
pub const n: usize = (16*1024); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from crates.io | |
extern crate mmap; | |
extern crate libc; | |
mod fpga_awg; | |
use std::ptr; | |
use std::fs; | |
use std::io::{Write, SeekFrom, Seek}; | |
use std::os::unix::prelude::AsRawFd; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from crates.io | |
//extern crate mmap; | |
//extern crate libc; | |
//mod fpga_awg; | |
//fn main() { | |
// let mut awg = fpga_awg::fpgaAwg::new(); | |
// let mut params: fpga_awg::awgParam = fpga_awg::awgParam::default(); | |
//let mut data: [i32; fpga_awg::n] = [0; fpga_awg::n]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gdb rust_blink | |
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 | |
Copyright (C) 2014 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "arm-linux-gnueabihf". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gdb rust_blink | |
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 | |
Copyright (C) 2014 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "arm-linux-gnueabihf". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Program received signal SIGBUS, Bus error. | |
0x36f524a0 in memset () from /lib/arm-linux-gnueabihf/libc.so.6 | |
(gdb) s | |
Single stepping until exit from function memset, | |
which has no line number information. | |
0x36f1de84 in ssignal () from /lib/arm-linux-gnueabihf/libc.so.6 | |
(gdb) s | |
Single stepping until exit from function ssignal, | |
which has no line number information. | |
0x2a00b054 in sys::stack_overflow::imp::signal_handler::hccc68ea01534bf99AWu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gdb rust_blink | |
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 | |
Copyright (C) 2014 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "arm-linux-gnueabihf". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gdb rust_blink | |
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 | |
Copyright (C) 2014 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "arm-linux-gnueabihf". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gdb rust_blink | |
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 | |
Copyright (C) 2014 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "arm-linux-gnueabihf". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: |
OlderNewer