mirror of https://github.com/m-labs/artiq.git
firmware: merge libamp into libboard_artiq.
All gateware interfaces live in libboard_artiq, but libamp predates libboard_artiq.
This commit is contained in:
parent
764386c9e3
commit
1ff42683d9
|
@ -2,13 +2,6 @@
|
||||||
name = "alloc_list"
|
name = "alloc_list"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "amp"
|
|
||||||
version = "0.0.0"
|
|
||||||
dependencies = [
|
|
||||||
"board 0.0.0",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bitflags"
|
name = "bitflags"
|
||||||
version = "1.0.1"
|
version = "1.0.1"
|
||||||
|
@ -134,8 +127,8 @@ dependencies = [
|
||||||
name = "ksupport"
|
name = "ksupport"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"amp 0.0.0",
|
|
||||||
"board 0.0.0",
|
"board 0.0.0",
|
||||||
|
"board_artiq 0.0.0",
|
||||||
"build_misoc 0.0.0",
|
"build_misoc 0.0.0",
|
||||||
"cslice 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"cslice 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"dyld 0.0.0",
|
"dyld 0.0.0",
|
||||||
|
@ -204,7 +197,6 @@ name = "runtime"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"alloc_list 0.0.0",
|
"alloc_list 0.0.0",
|
||||||
"amp 0.0.0",
|
|
||||||
"board 0.0.0",
|
"board 0.0.0",
|
||||||
"board_artiq 0.0.0",
|
"board_artiq 0.0.0",
|
||||||
"build_artiq 0.0.0",
|
"build_artiq 0.0.0",
|
||||||
|
|
|
@ -17,5 +17,5 @@ cslice = { version = "0.3" }
|
||||||
io = { path = "../libio", features = ["byteorder"] }
|
io = { path = "../libio", features = ["byteorder"] }
|
||||||
dyld = { path = "../libdyld" }
|
dyld = { path = "../libdyld" }
|
||||||
board = { path = "../libboard" }
|
board = { path = "../libboard" }
|
||||||
|
board_artiq = { path = "../libboard_artiq" }
|
||||||
proto = { path = "../libproto" }
|
proto = { path = "../libproto" }
|
||||||
amp = { path = "../libamp" }
|
|
||||||
|
|
|
@ -8,19 +8,19 @@ extern crate unwind;
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
|
|
||||||
extern crate io;
|
extern crate io;
|
||||||
extern crate board;
|
|
||||||
extern crate dyld;
|
extern crate dyld;
|
||||||
|
extern crate board;
|
||||||
|
extern crate board_artiq;
|
||||||
extern crate proto;
|
extern crate proto;
|
||||||
extern crate amp;
|
|
||||||
|
|
||||||
use core::{mem, ptr, slice, str};
|
use core::{mem, ptr, slice, str};
|
||||||
use cslice::{CSlice, AsCSlice};
|
use cslice::{CSlice, AsCSlice};
|
||||||
use io::Cursor;
|
use io::Cursor;
|
||||||
use board::csr;
|
|
||||||
use dyld::Library;
|
use dyld::Library;
|
||||||
|
use board::csr;
|
||||||
|
use board_artiq::{mailbox, rpc_queue};
|
||||||
use proto::{kernel_proto, rpc_proto};
|
use proto::{kernel_proto, rpc_proto};
|
||||||
use proto::kernel_proto::*;
|
use kernel_proto::*;
|
||||||
use amp::{mailbox, rpc_queue};
|
|
||||||
|
|
||||||
fn send(request: &Message) {
|
fn send(request: &Message) {
|
||||||
unsafe { mailbox::send(request as *const _ as usize) }
|
unsafe { mailbox::send(request as *const _ as usize) }
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
[package]
|
|
||||||
authors = ["M-Labs"]
|
|
||||||
name = "amp"
|
|
||||||
version = "0.0.0"
|
|
||||||
|
|
||||||
[lib]
|
|
||||||
name = "amp"
|
|
||||||
path = "lib.rs"
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
board = { path = "../libboard" }
|
|
|
@ -1,6 +0,0 @@
|
||||||
#![no_std]
|
|
||||||
|
|
||||||
extern crate board;
|
|
||||||
|
|
||||||
pub mod mailbox;
|
|
||||||
pub mod rpc_queue;
|
|
|
@ -16,6 +16,9 @@ pub mod pcr;
|
||||||
pub mod i2c;
|
pub mod i2c;
|
||||||
pub mod spi;
|
pub mod spi;
|
||||||
|
|
||||||
|
pub mod mailbox;
|
||||||
|
pub mod rpc_queue;
|
||||||
|
|
||||||
#[cfg(has_si5324)]
|
#[cfg(has_si5324)]
|
||||||
pub mod si5324;
|
pub mod si5324;
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,6 @@ std_artiq = { path = "../libstd_artiq", features = ["alloc", "io_error_alloc"] }
|
||||||
logger_artiq = { path = "../liblogger_artiq" }
|
logger_artiq = { path = "../liblogger_artiq" }
|
||||||
board_artiq = { path = "../libboard_artiq" }
|
board_artiq = { path = "../libboard_artiq" }
|
||||||
proto = { path = "../libproto", features = ["log", "alloc"] }
|
proto = { path = "../libproto", features = ["log", "alloc"] }
|
||||||
amp = { path = "../libamp" }
|
|
||||||
|
|
||||||
[dependencies.fringe]
|
[dependencies.fringe]
|
||||||
git = "https://github.com/m-labs/libfringe"
|
git = "https://github.com/m-labs/libfringe"
|
||||||
|
|
|
@ -20,7 +20,6 @@ extern crate logger_artiq;
|
||||||
extern crate board;
|
extern crate board;
|
||||||
extern crate board_artiq;
|
extern crate board_artiq;
|
||||||
extern crate proto;
|
extern crate proto;
|
||||||
extern crate amp;
|
|
||||||
|
|
||||||
use core::convert::TryFrom;
|
use core::convert::TryFrom;
|
||||||
use smoltcp::wire::{EthernetAddress, IpAddress, IpCidr};
|
use smoltcp::wire::{EthernetAddress, IpAddress, IpCidr};
|
||||||
|
@ -34,7 +33,7 @@ use board_artiq::drtioaux;
|
||||||
use proto::{mgmt_proto, moninj_proto, rpc_proto, session_proto,kernel_proto};
|
use proto::{mgmt_proto, moninj_proto, rpc_proto, session_proto,kernel_proto};
|
||||||
#[cfg(has_rtio_analyzer)]
|
#[cfg(has_rtio_analyzer)]
|
||||||
use proto::analyzer_proto;
|
use proto::analyzer_proto;
|
||||||
use amp::{mailbox, rpc_queue};
|
use board_artiq::{mailbox, rpc_queue};
|
||||||
|
|
||||||
#[cfg(has_rtio_core)]
|
#[cfg(has_rtio_core)]
|
||||||
mod rtio_mgt;
|
mod rtio_mgt;
|
||||||
|
|
Loading…
Reference in New Issue