Fix mismatched signatures for the wide interface
Lists are passed by-reference from python code, and so should be &CSlice<_> not CSlice<_>.
This commit is contained in:
parent
c6fcc4e351
commit
8cb6cf6094
@ -116,7 +116,7 @@ pub extern "C" fn dma_record_output(target: i32, word: i32) {
|
||||
}
|
||||
}
|
||||
|
||||
pub extern "C" fn dma_record_output_wide(target: i32, words: CSlice<i32>) {
|
||||
pub extern "C" fn dma_record_output_wide(target: i32, words: &CSlice<i32>) {
|
||||
assert!(words.len() <= 16); // enforce the hardware limit
|
||||
|
||||
unsafe {
|
||||
|
@ -107,7 +107,7 @@ pub extern "C" fn output(target: i32, data: i32) {
|
||||
}
|
||||
}
|
||||
|
||||
pub extern "C" fn output_wide(target: i32, data: CSlice<i32>) {
|
||||
pub extern "C" fn output_wide(target: i32, data: &CSlice<i32>) {
|
||||
unsafe {
|
||||
csr::rtio::target_write(target as u32);
|
||||
// writing target clears o_data
|
||||
|
Loading…
Reference in New Issue
Block a user