Skip to content

Instantly share code, notes, and snippets.

@lachlansneff
Last active November 22, 2020 02:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lachlansneff/edc1f1092e9378305ba56e6e141f2d44 to your computer and use it in GitHub Desktop.
Save lachlansneff/edc1f1092e9378305ba56e6e141f2d44 to your computer and use it in GitHub Desktop.
#![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 {}
}
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