From 8daaacee6879710160df7b5de2de41b1c18a156d Mon Sep 17 00:00:00 2001 From: mwojcik Date: Fri, 25 Mar 2022 17:55:13 +0800 Subject: [PATCH] get_destination_status: add rtio_ prefix --- src/runtime/src/kernel/api.rs | 4 ++-- src/runtime/src/kernel/core1.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/src/kernel/api.rs b/src/runtime/src/kernel/api.rs index e86c2c2..a44ab6e 100644 --- a/src/runtime/src/kernel/api.rs +++ b/src/runtime/src/kernel/api.rs @@ -13,7 +13,7 @@ use crate::i2c; use super::rpc::{rpc_send, rpc_send_async, rpc_recv}; use super::dma; use super::cache; -use super::core1::get_destination_status; +use super::core1::rtio_get_destination_status; extern "C" { fn vsnprintf_(buffer: *mut c_char, count: size_t, format: *const c_char, va: VaList) -> c_int; @@ -87,7 +87,7 @@ pub fn resolve(required: &[u8]) -> Option { // rtio api!(rtio_init = rtio::init), - api!(rtio_get_destination_status = get_destination_status), + api!(rtio_get_destination_status = rtio_get_destination_status), api!(rtio_get_counter = rtio::get_counter), api!(rtio_output = rtio::output), api!(rtio_output_wide = rtio::output_wide), diff --git a/src/runtime/src/kernel/core1.rs b/src/runtime/src/kernel/core1.rs index 9107bc4..1ebee9e 100644 --- a/src/runtime/src/kernel/core1.rs +++ b/src/runtime/src/kernel/core1.rs @@ -234,7 +234,7 @@ extern fn dl_unwind_find_exidx(pc: *const u32, len_ptr: *mut u32) -> *const u32 start } -pub extern fn get_destination_status(destination: i32) -> bool { +pub extern fn rtio_get_destination_status(destination: i32) -> bool { #[cfg(has_drtio)] if destination > 0 && destination < 255 { let reply = unsafe {