mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-29 21:23:34 +08:00
Fix mismatched signatures for the wide interface
Lists are passed by-reference from python code, and so should be &CSlice<_> not CSlice<_>. Signed-off-by: Jonathan Coates <jonathan.coates@oxionics.com>
This commit is contained in:
parent
df15f53ee9
commit
3ca47537b8
@ -343,7 +343,7 @@ extern fn dma_record_output(target: i32, word: i32) {
|
||||
}
|
||||
|
||||
#[unwind(aborts)]
|
||||
extern fn dma_record_output_wide(target: i32, words: CSlice<i32>) {
|
||||
extern fn dma_record_output_wide(target: i32, words: &CSlice<i32>) {
|
||||
assert!(words.len() <= 16); // enforce the hardware limit
|
||||
|
||||
unsafe {
|
||||
|
@ -89,7 +89,7 @@ mod imp {
|
||||
}
|
||||
}
|
||||
|
||||
pub extern fn output_wide(target: i32, data: CSlice<i32>) {
|
||||
pub extern fn output_wide(target: i32, data: &CSlice<i32>) {
|
||||
unsafe {
|
||||
csr::rtio::target_write(target as u32);
|
||||
// writing target clears o_data
|
||||
@ -235,7 +235,7 @@ mod imp {
|
||||
unimplemented!("not(has_rtio)")
|
||||
}
|
||||
|
||||
pub extern fn output_wide(_target: i32, _data: CSlice<i32>) {
|
||||
pub extern fn output_wide(_target: i32, _data: &CSlice<i32>) {
|
||||
unimplemented!("not(has_rtio)")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user