Remove get_ prefix in program_counter_before_interrupt

This commit is contained in:
Gwilym Kuiper 2022-03-23 20:39:41 +00:00
parent f1fd5859f3
commit 77eba9b637
2 changed files with 2 additions and 2 deletions

View file

@ -376,6 +376,6 @@ pub fn profiler(timer: &mut crate::timer::Timer, period: u16) -> InterruptHandle
timer.set_enabled(true);
add_interrupt_handler(timer.interrupt(), |_key: &CriticalSection| {
crate::println!("{:#010x}", crate::get_program_counter_before_interrupt());
crate::println!("{:#010x}", crate::program_counter_before_interrupt());
})
}

View file

@ -408,7 +408,7 @@ mod test {
}
#[inline(never)]
pub fn get_program_counter_before_interrupt() -> u32 {
pub(crate) fn program_counter_before_interrupt() -> u32 {
extern "C" {
static mut agb_rs__program_counter: u32;
}