Fix mismatched signatures for the wide interface

This commit is contained in:
Jonathan Coates 2023-04-17 10:16:22 +08:00 committed by Sebastien Bourdeauducq
parent a44a21436c
commit da0eedaa76
2 changed files with 2 additions and 2 deletions

View File

@ -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
unsafe {

View File

@ -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 {
csr::rtio::target_write(target as u32);
// writing target clears o_data