-
-
Save lachlansneff/edc1f1092e9378305ba56e6e141f2d44 to your computer and use it in GitHub Desktop.
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
#![no_std] | |
#![no_main] | |
extern crate panic_halt; | |
use picorv32_rt::entry; | |
const TEST: *mut u32 = 0xcafebab0 as *mut u32; | |
#[entry] | |
fn main() -> ! { | |
unsafe { | |
TEST.write_volatile(!0); | |
} | |
loop {} | |
} |
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
self.picorv32 = PicoRV32([ | |
Mapping( | |
addr=0xcafebab0, | |
signal=self.led, | |
write=True, | |
read=False, | |
) | |
# Mapping( | |
# addr=0xf000_0000, | |
# signal=self.dds_ctrl, | |
# read=True, | |
# write=True, | |
# ), | |
# Mapping( | |
# addr=0xf000_0004, # offset by 1 word | |
# signal=self.dds.phase_step, | |
# read=True, | |
# write=True, | |
# ), | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment