forked from M-Labs/artiq-zynq
Fix mismatched signatures for the wide interface
This commit is contained in:
parent
a44a21436c
commit
da0eedaa76
|
@ -116,7 +116,7 @@ pub extern fn dma_record_output(target: i32, word: i32) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub extern fn dma_record_output_wide(target: i32, words: CSlice<i32>) {
|
pub extern fn dma_record_output_wide(target: i32, words: &CSlice<i32>) {
|
||||||
assert!(words.len() <= 16); // enforce the hardware limit
|
assert!(words.len() <= 16); // enforce the hardware limit
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
|
@ -94,7 +94,7 @@ pub extern fn output(target: i32, data: i32) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub extern fn output_wide(target: i32, data: CSlice<i32>) {
|
pub extern fn output_wide(target: i32, data: &CSlice<i32>) {
|
||||||
unsafe {
|
unsafe {
|
||||||
csr::rtio::target_write(target as u32);
|
csr::rtio::target_write(target as u32);
|
||||||
// writing target clears o_data
|
// writing target clears o_data
|
||||||
|
|
Loading…
Reference in New Issue