From 869a28241079d1f98822b5033681fa808abedcfe Mon Sep 17 00:00:00 2001 From: occheung Date: Thu, 22 Jul 2021 16:28:18 +0800 Subject: [PATCH] satman: use riscv --- artiq/firmware/satman/Cargo.toml | 1 + artiq/firmware/satman/main.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/artiq/firmware/satman/Cargo.toml b/artiq/firmware/satman/Cargo.toml index fdccaf27a..0db54cd40 100644 --- a/artiq/firmware/satman/Cargo.toml +++ b/artiq/firmware/satman/Cargo.toml @@ -16,3 +16,4 @@ build_misoc = { path = "../libbuild_misoc" } log = { version = "0.4", default-features = false } board_misoc = { path = "../libboard_misoc", features = ["uart_console", "log"] } board_artiq = { path = "../libboard_artiq" } +riscv = { version = "0.6.0", features = ["inline-asm"] } diff --git a/artiq/firmware/satman/main.rs b/artiq/firmware/satman/main.rs index 0b6d1cccb..38e321da4 100644 --- a/artiq/firmware/satman/main.rs +++ b/artiq/firmware/satman/main.rs @@ -6,6 +6,7 @@ extern crate log; #[macro_use] extern crate board_misoc; extern crate board_artiq; +extern crate riscv; use core::convert::TryFrom; use board_misoc::{csr, irq, ident, clock, uart_logger, i2c};